File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 33Methods with value receivers can be called on pointers as well as values.
44Methods with pointer receivers can only be called on pointers or [ addressable values] .
55
6- [ addressable values ] : https://go.dev/ref/spec#Method_values
6+ [ addressable values ] : https://go.dev/ref/spec#Address_operators
77
88For example,
99
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ func (h LogHandler) ServeHTTP(
200200### Receivers and Interfaces
201201
202202Methods with value receivers can be called on pointers as well as values.
203- Methods with pointer receivers can only be called on pointers or [ addressable values] ( https://go.dev/ref/spec#Method_values ) .
203+ Methods with pointer receivers can only be called on pointers or [ addressable values] ( https://go.dev/ref/spec#Address_operators ) .
204204
205205For example,
206206
You can’t perform that action at this time.
0 commit comments