diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 18:35:50 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 18:35:50 -0500 |
| commit | d6b12291db70ea19d37d84226161f964400ae0b2 (patch) | |
| tree | 6a4ae3a3d8b792055f4c3cec190c76c8f5727a9d | |
| parent | e49358828d84d4bf2a2ec8ee9447c8f5a00f90bc (diff) | |
| download | sloth-d6b12291db70ea19d37d84226161f964400ae0b2.tar.gz | |
cargo-fmt lmao
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/misc.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crates/sloth_vm/src/sloth_std/misc.rs b/crates/sloth_vm/src/sloth_std/misc.rs index 4476bfd..ca08d1d 100644 --- a/crates/sloth_vm/src/sloth_std/misc.rs +++ b/crates/sloth_vm/src/sloth_std/misc.rs @@ -16,7 +16,10 @@ fn get_doc(vm: &mut VM, args: &[Primitive]) -> NativeFunctionResult { return Err(native::Error::InvalidArgument); }; - let docs = fnc.doc.expect("Oopsie Poopsie the stringy no worky").to_string(); + let docs = fnc + .doc + .expect("Oopsie Poopsie the stringy no worky") + .to_string(); let object = Object::new(ObjectType::String(docs)); let ptr = vm.objects_mut().allocate(object); @@ -29,8 +32,8 @@ pub const DOCS: NativeFunction = NativeFunction { arity: 1, returns_value: true, doc: Some( - "NativeFunction docs: \n\targs: name (str)\n\tdesc: Returns documentaiton on a \ - function with name <str>\n\tExample: `var doc = docs('wait'); # Returns the \ - documentation of the 'wait' function to doc`", + "NativeFunction docs: \n\targs: name (str)\n\tdesc: Returns documentaiton on a function \ + with name <str>\n\tExample: `var doc = docs('wait'); # Returns the documentation of the \ + 'wait' function to doc`", ), }; |
