From ddd6bad68603a303ae20c0dc2b7775f59087724e Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Fri, 29 Sep 2023 14:45:29 -0600 Subject: [PATCH] Fix docs --- boa_engine/src/class.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boa_engine/src/class.rs b/boa_engine/src/class.rs index bfac2ed83ed..e44e8e934ea 100644 --- a/boa_engine/src/class.rs +++ b/boa_engine/src/class.rs @@ -8,6 +8,7 @@ //! # class::{Class, ClassBuilder}, //! # Context, JsResult, JsValue, //! # JsArgs, +//! # js_string, //! # }; //! # use boa_gc::{Finalize, Trace}; //! # @@ -43,7 +44,7 @@ //! /// This is where the object is initialized. //! fn init(class: &mut ClassBuilder) -> JsResult<()> { //! class.method( -//! "speak", +//! js_string!("speak"), //! 0, //! NativeFunction::from_fn_ptr(|this, _args, _ctx| { //! if let Some(object) = this.as_object() {