Change filename to path for clarity

This commit is contained in:
Jarkko Kuukkanen
2020-03-13 12:07:51 +02:00
parent 8c1c37666d
commit 6c72e3c48b
3 changed files with 15 additions and 15 deletions

View File

@@ -153,7 +153,7 @@ use rhai::Engine;
let mut engine = Engine::new();
let ast = engine.compile_file("hello_world.rhai").unwrap();
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.