diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 10:42:45 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 10:42:45 -0500 |
| commit | af02ccd056754c60131d13d74b9fac0e23b2af31 (patch) | |
| tree | 16b041a84a65f2b285192f79e774b15327885bf9 /crates/sloth_vm/src/sloth_std/time.rs | |
| parent | 38b564380a6362a82a0e5269b1e7e3d3635900e7 (diff) | |
| download | sloth-af02ccd056754c60131d13d74b9fac0e23b2af31.tar.gz | |
Added more documentation in the native functions
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/time.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/time.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/sloth_vm/src/sloth_std/time.rs b/crates/sloth_vm/src/sloth_std/time.rs index d32d860..b27e0b5 100644 --- a/crates/sloth_vm/src/sloth_std/time.rs +++ b/crates/sloth_vm/src/sloth_std/time.rs @@ -22,5 +22,8 @@ pub const WAIT: NativeFunction = NativeFunction { function: wait, arity: 1, returns_value: false, - doc: Some("Use `wait(sec: int)` to sleep for `sec` time"), + doc: Some( + "NativeFunction wait: \n\targs: sec (int)\n\tdesc: Waits for <sec> seconds.\n\tExample: \ + `wait(10); # Waits 10 seconds`", + ), }; |
