]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: fixed minor typo in comment
authorRobert Griesemer <gri@golang.org>
Tue, 10 Mar 2015 16:39:04 +0000 (09:39 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 10 Mar 2015 16:40:15 +0000 (16:40 +0000)
Fixes #10125.

Change-Id: I99032912650cef8e5bf124bda0a60d5899760103
Reviewed-on: https://go-review.googlesource.com/7320
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/ast/scope.go

index df1529d18198ce7e24122064c6ae53ef33c39ad0..1ce5e2e84b5da1a7c4f9ee74666783c8a0add675 100644 (file)
@@ -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 {