aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralandonovan <adonovan@google.com>2018-03-05 14:44:10 -0500
committerGitHub <noreply@github.com>2018-03-05 14:44:10 -0500
commitc15f32ee5e9de10bf94abd2f1f078e6a34f4ee46 (patch)
tree37e532bd4a775ba47816f778d6581d01f1e82964
parentfa00d7bbdc0bc33159b9a50f31de281bb0810a31 (diff)
downloadstarlark-go-c15f32ee5e9de10bf94abd2f1f078e6a34f4ee46.tar.gz
eval: document that Thread.Locals are accessible to Go, not Skylark (#78)
-rw-r--r--eval.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.go b/eval.go
index 8f2ab04..80d61b7 100644
--- a/eval.go
+++ b/eval.go
@@ -41,7 +41,8 @@ type Thread struct {
// See example_test.go for some example implementations of Load.
Load func(thread *Thread, module string) (StringDict, error)
- // locals holds arbitrary "thread-local" values belonging to the client.
+ // locals holds arbitrary "thread-local" Go values belonging to the client.
+ // They are accessible to the client but not to any Skylark program.
locals map[string]interface{}
}