fix readme

This commit is contained in:
fengcen 2016-11-25 20:37:07 +08:00
parent dbe471ce46
commit 6f79daaf45

View File

@ -85,12 +85,12 @@ assert_eq!(Expr::new("say_hello()")
```
You can create an array with `[]`:
You can create an array with `array()`:
```
use eval::{eval, to_value};
assert_eq!(eval("[1, 2, 3, 4, 5]"), Ok(to_value(vec![1, 2, 3, 4, 5])));
assert_eq!(eval("array(1, 2, 3, 4, 5)"), Ok(to_value(vec![1, 2, 3, 4, 5])));
```