Fix doc test.

This commit is contained in:
Stephen Chung 2022-09-13 21:56:36 +08:00
parent 85ca6ec4a1
commit 2458e05dcb

View File

@ -124,7 +124,7 @@ pub trait Package {
/// // Load a native Rust function. /// // Load a native Rust function.
/// module.set_native_fn("my_add", add); /// module.set_native_fn("my_add", add);
/// } |> |engine| { /// } |> |engine| {
/// engine.set_custom_operator("@", 160); /// engine.register_custom_operator("@", 160).unwrap();
/// } /// }
/// } /// }
/// ``` /// ```