From 551f3007041c079746e8c3e675b0fae1cd3299a8 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 1 Nov 2018 09:44:00 -0400 Subject: add docs/PKG/index.html redirects and import comments --- starlarkstruct/struct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starlarkstruct') diff --git a/starlarkstruct/struct.go b/starlarkstruct/struct.go index 96ad5e4..819fb2f 100644 --- a/starlarkstruct/struct.go +++ b/starlarkstruct/struct.go @@ -4,7 +4,7 @@ // Package starlarkstruct defines the Starlark 'struct' type, // an optional language extension. -package starlarkstruct +package starlarkstruct // import "go.starlark.net/starlarkstruct" // It is tempting to introduce a variant of Struct that is a wrapper // around a Go struct value, for stronger typing guarantees and more @@ -155,7 +155,7 @@ func (s *Struct) String() string { // Constructor returns the constructor used to create this struct. func (s *Struct) Constructor() starlark.Value { return s.constructor } -func (s *Struct) Type() string { return "struct" } +func (s *Struct) Type() string { return "struct" } func (s *Struct) Truth() starlark.Bool { return true } // even when empty func (s *Struct) Hash() (uint32, error) { // Same algorithm as Tuple.hash, but with different primes. -- cgit v1.2.3