Skip to content

Commit

Permalink
Remove an unused Thread in the sequential load example (google#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyverald authored Jan 26, 2021
1 parent 28488fa commit bc864be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions starlark/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bc864be

Please sign in to comment.