Fix turtle.refuel example (#1510)

This commit is contained in:
PenguinEncounter 2023-07-02 10:19:09 -07:00 committed by GitHub
parent 0b2bb5e7b5
commit 943a9406b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ public final Object getFuelLevel() {
* @cc.usage Refuel a turtle from the currently selected slot.
* <pre>{@code
* local level = turtle.getFuelLevel()
* if new_level == "unlimited" then error("Turtle does not need fuel", 0) end
* if level == "unlimited" then error("Turtle does not need fuel", 0) end
*
* local ok, err = turtle.refuel()
* if ok then