diff --git a/doc/stub/global.lua b/doc/stub/global.lua index 2c0f64ae1..ebeb66452 100644 --- a/doc/stub/global.lua +++ b/doc/stub/global.lua @@ -77,7 +77,7 @@ the prompt. @treturn string The text typed in. @see cc.completion For functions to help with completion. -@usage Read an string and echo it back to the user +@usage Read a string and echo it back to the user write("> ") local msg = read() diff --git a/src/main/java/dan200/computercraft/core/apis/FSAPI.java b/src/main/java/dan200/computercraft/core/apis/FSAPI.java index 817cffae3..536587068 100644 --- a/src/main/java/dan200/computercraft/core/apis/FSAPI.java +++ b/src/main/java/dan200/computercraft/core/apis/FSAPI.java @@ -364,6 +364,8 @@ public final void delete( String path ) throws LuaException * lines[#lines + 1] = line * end * + * file.close() + * * print(lines[math.random(#lines)]) -- Pick a random line and print it. * } * @cc.usage Open a file and write some text to it. You can run {@code edit out.txt} to see the written text. diff --git a/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java index f84cb7c0a..dfcd8f2de 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java @@ -161,7 +161,7 @@ public final void closeAll() * * @param channel The channel to send messages on. * @param replyChannel The channel that responses to this message should be sent on. - * @param payload The object to send. This can be a string, number, or table. + * @param payload The object to send. This can be a boolean, string, number, or table. * @throws LuaException If the channel is out of range. */ @LuaFunction