From 39bbff878ced1da61dd7f6b2662a257a96df41b4 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 25 Sep 2020 20:00:49 +0800 Subject: [PATCH] Fix doc test. --- src/module/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/mod.rs b/src/module/mod.rs index 75abda36..fbaf0a0e 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -1233,7 +1233,7 @@ impl Module { /// /// let engine = Engine::new(); /// let ast = engine.compile("let answer = 42; export answer;")?; - /// let module = Module::eval_ast_as_new(Scope::new(), &ast, &engine, true)?; + /// let module = Module::eval_ast_as_new(Scope::new(), &ast, true, &engine)?; /// assert!(module.contains_var("answer")); /// assert_eq!(module.get_var_value::("answer").unwrap(), 42); /// # Ok(())