mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
net/http: fix comment on LocalAddrContextKey
Change-Id: Ibb793158a190758cebc00b58c12e3b8b106c0548
GitHub-Last-Rev: 6a6d949eb2
GitHub-Pull-Request: golang/go#24702
Reviewed-on: https://go-review.googlesource.com/104896
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
c00c1efbd8
commit
8818b4d27e
|
@ -227,8 +227,8 @@ var (
|
|||
ServerContextKey = &contextKey{"http-server"}
|
||||
|
||||
// LocalAddrContextKey is a context key. It can be used in
|
||||
// HTTP handlers with context.WithValue to access the address
|
||||
// the local address the connection arrived on.
|
||||
// HTTP handlers with context.WithValue to access the local
|
||||
// address the connection arrived on.
|
||||
// The associated value will be of type net.Addr.
|
||||
LocalAddrContextKey = &contextKey{"local-addr"}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue