Commit 3cfc34a5 authored by Robert Griesemer's avatar Robert Griesemer

reflect: fix doc string

Fixes #12017.

Change-Id: I3dfcf9d0b62cae02eca1973383f0aad286a6ef4d
Reviewed-on: https://go-review.googlesource.com/13136Reviewed-by: 's avatarKeith Randall <khr@golang.org>
parent be39a429
...@@ -281,7 +281,7 @@ func (v Value) CanAddr() bool { ...@@ -281,7 +281,7 @@ func (v Value) CanAddr() bool {
// A Value can be changed only if it is addressable and was not // A Value can be changed only if it is addressable and was not
// obtained by the use of unexported struct fields. // obtained by the use of unexported struct fields.
// If CanSet returns false, calling Set or any type-specific // If CanSet returns false, calling Set or any type-specific
// setter (e.g., SetBool, SetInt64) will panic. // setter (e.g., SetBool, SetInt) will panic.
func (v Value) CanSet() bool { func (v Value) CanSet() bool {
return v.flag&(flagAddr|flagRO) == flagAddr return v.flag&(flagAddr|flagRO) == flagAddr
} }
......
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