Skip to content

Commit bc1f8ac

Browse files
authored
Update README.md
1 parent 0223e4d commit bc1f8ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ product.Stock < 15
3030
* Seamless integration with Go (no need to redefine types)
3131
* Static typing ([example](https://godoc.org/github.com/antonmedv/expr#example-Env)).
3232
```go
33-
out, err := expr.Eval(`"hello" + 10`)
33+
out, err := expr.Compile(`name + age`)
3434
// err: invalid operation + (mismatched types string and int)
35-
// | "hello" + 10
36-
// | ........^
35+
// | name + age
36+
// | .....^
3737
```
3838
* User-friendly error messages.
3939
* Reasonable set of basic operators.

0 commit comments

Comments
 (0)