From 771acbab029afee1a676c0ec14051e674d716380 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 31 May 2020 23:01:46 +0200 Subject: [PATCH] Reflow comment and fix a typo in it (#391) Closes: #374 --- src/object.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/object.rs b/src/object.rs index 808f00fe..48eb012f 100644 --- a/src/object.rs +++ b/src/object.rs @@ -98,12 +98,11 @@ impl Object { unsafe { scope.to_local(ptr) }.unwrap() } - /// Creates a JavaScript object with the given properties, and - /// a the given prototype_or_null (which can be any JavaScript - /// value, and if it's null, the newly created object won't have - /// a prototype at all). This is similar to Object.create(). - /// All properties will be created as enumerable, configurable - /// and writable properties. + /// Creates a JavaScript object with the given properties, and the given + /// prototype_or_null (which can be any JavaScript value, and if it's null, + /// the newly created object won't have a prototype at all). This is similar + /// to Object.create(). All properties will be created as enumerable, + /// configurable and writable properties. pub fn with_prototype_and_properties<'sc>( scope: &mut impl ToLocal<'sc>, prototype_or_null: Local<'sc, Value>,