Use INT in examples instead of i64.

This commit is contained in:
Stephen Chung
2020-03-24 09:49:08 +08:00
parent 1b4bcbcfdf
commit 060a61fc9d
6 changed files with 14 additions and 14 deletions

View File

@@ -1,13 +1,13 @@
#![cfg_attr(feature = "no_std", no_std)]
use rhai::{Engine, EvalAltResult};
use rhai::{Engine, EvalAltResult, INT};
fn main() -> Result<(), EvalAltResult> {
let mut engine = Engine::new();
let result = engine.eval::<i64>("40 + 2")?;
let result = engine.eval::<INT>("40 + 2")?;
assert_eq!(result, 42);
println!("Answer: {}", 42);
Ok(())
}