1
0
mirror of https://github.com/golang/go synced 2024-09-29 20:34:36 -06:00

go/types: fix lhs/rhs mixup in docs

Change-Id: Ifd51636c9254de51b8a21371d7507a9481bcca0a
Reviewed-on: https://go-review.googlesource.com/109142
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Matthew Dempsky 2018-04-24 16:25:45 -07:00
parent ae26d57f96
commit a5f19812cf

View 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
}