From bc864be25151710e5d1c992993e31b5543e779e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Tue, 26 Jan 2021 17:14:01 +0100 Subject: Remove an unused Thread in the sequential load example (#345) --- starlark/example_test.go | 3 +-- 1 file changed, 1 insertion(+), 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) } -- cgit v1.2.3