diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 09:08:49 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 09:08:49 -0500 |
| commit | b0ffef5124c88d52d81cbd2f8c96c019ce84ad47 (patch) | |
| tree | 2c386ab8d561459723d10f4961cc8a8f6772565e /crates/sloth_vm/src/sloth_std/stdio.rs | |
| parent | 19fefeb732d559195edb01ebc36170c0cf9a0308 (diff) | |
| download | sloth-b0ffef5124c88d52d81cbd2f8c96c019ce84ad47.tar.gz | |
Need to write tests for it, but hopefully function docs work now
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/stdio.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/stdio.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/sloth_vm/src/sloth_std/stdio.rs b/crates/sloth_vm/src/sloth_std/stdio.rs index 75029bd..160d012 100644 --- a/crates/sloth_vm/src/sloth_std/stdio.rs +++ b/crates/sloth_vm/src/sloth_std/stdio.rs @@ -28,6 +28,7 @@ pub const WRITE_FUNCTION: NativeFunction = NativeFunction { function: write, arity: 1, returns_value: false, + doc: None, }; fn writeln(vm: &mut VM, args: &[Primitive]) -> NativeFunctionResult { @@ -54,6 +55,7 @@ pub const WRITELN_FUNCTION: NativeFunction = NativeFunction { function: writeln, arity: 1, returns_value: false, + doc: None, }; fn read(vm: &mut VM, _args: &[Primitive]) -> NativeFunctionResult { @@ -74,4 +76,5 @@ pub const READ_FUNCTION: NativeFunction = NativeFunction { function: read, arity: 0, returns_value: true, + doc: None, }; |
