mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 19:50:31 +00:00
Fix & enhance some docs (#857)
This commit is contained in:
parent
74752c561c
commit
04e97f7b86
@ -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()
|
||||
|
@ -364,6 +364,8 @@ public class FSAPI implements ILuaAPI
|
||||
* lines[#lines + 1] = line
|
||||
* end
|
||||
*
|
||||
* file.close()
|
||||
*
|
||||
* print(lines[math.random(#lines)]) -- Pick a random line and print it.
|
||||
* }</pre>
|
||||
* @cc.usage Open a file and write some text to it. You can run {@code edit out.txt} to see the written text.
|
||||
|
@ -161,7 +161,7 @@ public abstract class ModemPeripheral implements IPeripheral, IPacketSender, IPa
|
||||
*
|
||||
* @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
|
||||
|
Loading…
Reference in New Issue
Block a user