mirror of
https://github.com/golang/go
synced 2024-11-17 16:24:42 -07: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:
parent
ae26d57f96
commit
a5f19812cf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user