diff --git a/src/packages/mod.rs b/src/packages/mod.rs index 5aa2d646..8a7e1dbc 100644 --- a/src/packages/mod.rs +++ b/src/packages/mod.rs @@ -124,7 +124,7 @@ pub trait Package { /// // Load a native Rust function. /// module.set_native_fn("my_add", add); /// } |> |engine| { -/// engine.set_custom_operator("@", 160); +/// engine.register_custom_operator("@", 160).unwrap(); /// } /// } /// ```