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 3
3
Methods with value receivers can be called on pointers as well as values.
4
4
Methods with pointer receivers can only be called on pointers or [ addressable values] .
5
5
6
- [ addressable values ] : https://go.dev/ref/spec#Method_values
6
+ [ addressable values ] : https://go.dev/ref/spec#Address_operators
7
7
8
8
For example,
9
9
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ func (h LogHandler) ServeHTTP(
200
200
### Receivers and Interfaces
201
201
202
202
Methods 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 ) .
204
204
205
205
For example,
206
206
You can’t perform that action at this time.
0 commit comments