aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_vm/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/sloth_vm/src')
-rw-r--r--crates/sloth_vm/src/sloth_std/misc.rs11
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`",
),
};