Merge branch 'master' into master

This commit is contained in:
Stephen Chung
2020-03-13 18:27:53 +08:00
committed by GitHub
4 changed files with 16 additions and 22 deletions

View File

@@ -167,7 +167,7 @@ use rhai::Engine;
let mut engine = Engine::new();
let ast = engine.compile_file("hello_world.rhai")?;
let ast = engine.compile_file("hello_world.rhai".into()).unwrap();
```
Rhai also allows you to work _backwards_ from the other direction - i.e. calling a Rhai-scripted function from Rust.