Commit a5f19812 authored by Matthew Dempsky's avatar Matthew Dempsky

go/types: fix lhs/rhs mixup in docs

Change-Id: Ifd51636c9254de51b8a21371d7507a9481bcca0a
Reviewed-on: https://go-review.googlesource.com/109142Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
parent ae26d57f
...@@ -309,7 +309,7 @@ func (tv TypeAndValue) Assignable() bool { ...@@ -309,7 +309,7 @@ func (tv TypeAndValue) Assignable() bool {
} }
// HasOk reports whether the corresponding expression may be // 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 { func (tv TypeAndValue) HasOk() bool {
return tv.mode == commaok || tv.mode == mapindex return tv.mode == commaok || tv.mode == mapindex
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment