diff options
author | Xùdōng Yáng <wyverald@gmail.com> | 2021-01-26 17:14:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 11:14:01 -0500 |
commit | bc864be25151710e5d1c992993e31b5543e779e1 (patch) | |
tree | 36388a1e4c9c15eaf2dbc720fa7d173aa134eff6 | |
parent | 28488fade247cf7c918bd994f16b1f38b4b7c5bc (diff) | |
download | starlark-go-bc864be25151710e5d1c992993e31b5543e779e1.tar.gz |
Remove an unused Thread in the sequential load example (#345)
-rw-r--r-- | starlark/example_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/starlark/example_test.go b/starlark/example_test.go index 4bd0c74..5feca38 100644 --- a/starlark/example_test.go +++ b/starlark/example_test.go @@ -116,8 +116,7 @@ func ExampleThread_Load_sequential() { return e.globals, e.err } - thread := &starlark.Thread{Name: "exec c.star", Load: load} - globals, err := load(thread, "c.star") + globals, err := load(nil, "c.star") if err != nil { log.Fatal(err) } |