Fix codegen doc error.

This commit is contained in:
Stephen Chung 2020-11-17 13:11:31 +08:00
parent df72d324ba
commit bd094d95b4

View File

@ -365,7 +365,7 @@ pub fn set_exported_fn(args: proc_macro::TokenStream) -> proc_macro::TokenStream
/// let mut module = Module::new();
/// set_exported_global_fn!(module, "func", my_plugin_function);
///
/// engine.load_module("test", module);
/// engine.register_module("test", module);
///
/// assert_eq!(engine.eval::<i64>("func(21)")?, 42);
/// # Ok(())