]> Cypherpunks repositories - gostls13.git/commit
net/http: make docs refer to Context.Value as a getter instead of context.WithValue
authorKevin Gillette <extemporalgenome@gmail.com>
Mon, 26 Aug 2019 03:30:21 +0000 (03:30 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 26 Aug 2019 16:03:18 +0000 (16:03 +0000)
commit8b03a3992bc755eadbccc10d97adc21d0b229401
tree313eecdbf3212ae7325c65e4f437034b1b0a1dd0
parent78f6856ddf855a457bd33af27089cb3f6e1b2a2d
net/http: make docs refer to Context.Value as a getter instead of context.WithValue

The doc comments of both ServerContextKey and LocalAddrContextKey both suggest that context.WithValue can be used to access (get) properties of the server or connection. This PR fixes those comments to refer to Context.Value instead.

Change-Id: I4ed383ef97ba1951f90c555243007469cfc18d4d
GitHub-Last-Rev: 05bc3acf82322e3dc77abc7fa0412efe01a77eac
GitHub-Pull-Request: golang/go#33833
Reviewed-on: https://go-review.googlesource.com/c/go/+/191838
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/server.go