aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_vm/src/sloth_std/rand.rs
diff options
context:
space:
mode:
authornic-gaffney <gaffney_nic@protonmail.com>2023-04-18 09:08:49 -0500
committernic-gaffney <gaffney_nic@protonmail.com>2023-04-18 09:08:49 -0500
commitb0ffef5124c88d52d81cbd2f8c96c019ce84ad47 (patch)
tree2c386ab8d561459723d10f4961cc8a8f6772565e /crates/sloth_vm/src/sloth_std/rand.rs
parent19fefeb732d559195edb01ebc36170c0cf9a0308 (diff)
downloadsloth-b0ffef5124c88d52d81cbd2f8c96c019ce84ad47.tar.gz
Need to write tests for it, but hopefully function docs work now
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/rand.rs')
-rw-r--r--crates/sloth_vm/src/sloth_std/rand.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/sloth_std/rand.rs b/crates/sloth_vm/src/sloth_std/rand.rs
index bae0606..93da0d7 100644
--- a/crates/sloth_vm/src/sloth_std/rand.rs
+++ b/crates/sloth_vm/src/sloth_std/rand.rs
@@ -16,6 +16,7 @@ pub const GEN_FUNCTION: NativeFunction = NativeFunction {
function: gen,
arity: 0,
returns_value: true,
+ doc: None,
};
fn gen_range(_vm: &mut VM, args: &[Primitive]) -> NativeFunctionResult {
@@ -36,4 +37,5 @@ pub const GEN_RANGE_FUNCTION: NativeFunction = NativeFunction {
function: gen_range,
arity: 2,
returns_value: true,
+ doc: None,
};