Skip to content

Commit

Permalink
update example in README.md - fix #104
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmos72 committed Dec 11, 2020
1 parent 6250a60 commit 5dde3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -58,7 +58,7 @@ Gomacro can be used as:
interp := fast.New()
vals, _ := interp.Eval(toeval)
// for simplicity, only use the first returned value
return vals[0]
return vals[0].ReflectValue()
}
func main() {
fmt.Println(RunGomacro("1+1"))
Expand Down

0 comments on commit 5dde3a8

Please sign in to comment.