From be3d360913246ac07332e71f53c82f29e2858edc Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Thu, 31 Mar 2016 07:07:33 -0700 Subject: [PATCH] Update README.md --- README.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/README.md b/README.md index 046d83e2..a94eea83 100644 --- a/README.md +++ b/README.md @@ -49,16 +49,7 @@ fn main() { You can also evaluate a script file: ```Rust -extern crate rhai; -use rhai::Engine; - -fn main() { - let mut engine = Engine::new(); - - if let Ok(result) = engine.eval_file::("hello_world.rhai") { - println!("Answer: {}", result); // prints 42 - } -} +if let Ok(result) = engine.eval_file::("hello_world.rhai") { ... } ``` # Working with functions