Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Sep 29, 2023
1 parent 4e8c67e commit ddd6bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boa_engine/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! # class::{Class, ClassBuilder},
//! # Context, JsResult, JsValue,
//! # JsArgs,
//! # js_string,
//! # };
//! # use boa_gc::{Finalize, Trace};
//! #
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit ddd6bad

Please sign in to comment.