aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-03-10 09:39:04 -0700
committerRobert Griesemer <gri@golang.org>2015-03-10 16:40:15 +0000
commitd7e043eaf5740cf409883e75b32fc1e076a57d2f (patch)
tree98b75bb9f18045841b0f76044da874bdec2fa752 /src
parent5471e02338becccdd5df76c96bfeb467c25f003c (diff)
downloadgo-d7e043eaf5740cf409883e75b32fc1e076a57d2f.tar.xz
go/ast: fixed minor typo in comment
Fixes #10125. Change-Id: I99032912650cef8e5bf124bda0a60d5899760103 Reviewed-on: https://go-review.googlesource.com/7320 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/go/ast/scope.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/ast/scope.go b/src/go/ast/scope.go
index df1529d181..1ce5e2e84b 100644
--- a/src/go/ast/scope.go
+++ b/src/go/ast/scope.go
@@ -38,7 +38,7 @@ func (s *Scope) Lookup(name string) *Object {
// Insert attempts to insert a named object obj into the scope s.
// If the scope already contains an object alt with the same name,
// Insert leaves the scope unchanged and returns alt. Otherwise
-// it inserts obj and returns nil."
+// it inserts obj and returns nil.
//
func (s *Scope) Insert(obj *Object) (alt *Object) {
if alt = s.Objects[obj.Name]; alt == nil {