From 2458e05dcb6b6032f6361a9d35cd3230df21be10 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 13 Sep 2022 21:56:36 +0800 Subject: [PATCH] Fix doc test. --- src/packages/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); /// } /// } /// ```