Commit 8818b4d2 authored by Ryan Slade's avatar Ryan Slade Committed by Daniel Martí

net/http: fix comment on LocalAddrContextKey

Change-Id: Ibb793158a190758cebc00b58c12e3b8b106c0548
GitHub-Last-Rev: 6a6d949eb252ec6d3e76920fc2f50ef5ac3cdb5a
GitHub-Pull-Request: golang/go#24702
Reviewed-on: https://go-review.googlesource.com/104896Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent c00c1efb
...@@ -227,8 +227,8 @@ var ( ...@@ -227,8 +227,8 @@ var (
ServerContextKey = &contextKey{"http-server"} ServerContextKey = &contextKey{"http-server"}
// LocalAddrContextKey is a context key. It can be used in // LocalAddrContextKey is a context key. It can be used in
// HTTP handlers with context.WithValue to access the address // HTTP handlers with context.WithValue to access the local
// the local address the connection arrived on. // address the connection arrived on.
// The associated value will be of type net.Addr. // The associated value will be of type net.Addr.
LocalAddrContextKey = &contextKey{"local-addr"} LocalAddrContextKey = &contextKey{"local-addr"}
) )
......
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