From d6b12291db70ea19d37d84226161f964400ae0b2 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Thu, 27 Apr 2023 18:35:50 -0500 Subject: cargo-fmt lmao --- crates/sloth_vm/src/sloth_std/misc.rs | 11 +++++++---- 1 file 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 \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 \n\tExample: `var doc = docs('wait'); # Returns the documentation of the \ + 'wait' function to doc`", ), }; -- cgit v1.2.3