]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix lhs/rhs mixup in docs
authorMatthew Dempsky <mdempsky@google.com>
Tue, 24 Apr 2018 23:25:45 +0000 (16:25 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 25 Apr 2018 00:02:05 +0000 (00:02 +0000)
Change-Id: Ifd51636c9254de51b8a21371d7507a9481bcca0a
Reviewed-on: https://go-review.googlesource.com/109142
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api.go

index 9908f5c9738b89ade569235b0d03885a6d772e7b..f202eb0c346798f2d16df508f92a0bc7d4ec49d2 100644 (file)
@@ -309,7 +309,7 @@ func (tv TypeAndValue) Assignable() bool {
 }
 
 // HasOk reports whether the corresponding expression may be
-// used on the lhs of a comma-ok assignment.
+// used on the rhs of a comma-ok assignment.
 func (tv TypeAndValue) HasOk() bool {
        return tv.mode == commaok || tv.mode == mapindex
 }