diff --git a/README-zh.md b/README-zh.md index c967b9da1c6a4f43649fb78c1b8957ce45d4c8c4..fc561b7c695bd9709adc0085f5625afae2637938 100644 --- a/README-zh.md +++ b/README-zh.md @@ -122,8 +122,7 @@ import ( ) func main() { - # TODO: fix example - output, err := api.RunCode("hello.wa", "fn main() { println(40+2) }") + output, err := api.RunCode(api.DefaultConfig(), "hello.wa", code) fmt.Print(string(output), err) } ```