Skip to content

Commit

Permalink
reflect: fix doc string
Browse files Browse the repository at this point in the history
Fixes golang#12017.

Change-Id: I3dfcf9d0b62cae02eca1973383f0aad286a6ef4d
Reviewed-on: https://go-review.googlesource.com/13136
Reviewed-by: Keith Randall <khr@golang.org>
  • Loading branch information
griesemer committed Aug 4, 2015
1 parent be39a42 commit 3cfc34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (v Value) CanAddr() bool {
// A Value can be changed only if it is addressable and was not
// obtained by the use of unexported struct fields.
// 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 {
return v.flag&(flagAddr|flagRO) == flagAddr
}
Expand Down

0 comments on commit 3cfc34a

Please sign in to comment.