Add note on &T parameters.

This commit is contained in:
Stephen Chung
2020-08-06 21:11:24 +08:00
parent efe964f009
commit b8b1efd241
3 changed files with 10 additions and 4 deletions

View File

@@ -42,3 +42,5 @@ let result = engine.eval::<String>(r#"let a = new_ts(); a.xyz = "42"; a.xyz"#)?;
println!("Answer: {}", result); // prints 42
```
**IMPORTANT: Rhai does NOT support normal references (i.e. `&T`) as parameters.**