diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 17:19:54 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 17:19:54 -0500 |
| commit | ac8c9abab30d66ff208a623d0a6de8869373a554 (patch) | |
| tree | 8d2d20d9a5312a1e2fad73d9a6ee7294b0c27dc2 /crates/sloth_vm/src/sloth_std/time.rs | |
| parent | 757e804671ef3dcb2e0f1295e385780b5feae2ca (diff) | |
| parent | af02ccd056754c60131d13d74b9fac0e23b2af31 (diff) | |
| download | sloth-ac8c9abab30d66ff208a623d0a6de8869373a554.tar.gz | |
Merge branch 'standard-library' of github.com-Nic:slothlang/sloth into standard-library
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/time.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/time.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/sloth_std/time.rs b/crates/sloth_vm/src/sloth_std/time.rs index 4df715e..b27e0b5 100644 --- a/crates/sloth_vm/src/sloth_std/time.rs +++ b/crates/sloth_vm/src/sloth_std/time.rs @@ -22,4 +22,8 @@ pub const WAIT: NativeFunction = NativeFunction { function: wait, arity: 1, returns_value: false, + doc: Some( + "NativeFunction wait: \n\targs: sec (int)\n\tdesc: Waits for <sec> seconds.\n\tExample: \ + `wait(10); # Waits 10 seconds`", + ), }; |
