Commit 2cf9732e authored by Ioannis Georgoulas's avatar Ioannis Georgoulas Committed by Brad Fitzpatrick

context: add docs to ExampleWithValue

Change-Id: I3a83c63f4db2e46fd96f373378a429896e93f9d1
Reviewed-on: https://go-review.googlesource.com/48861Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent be36bd99
......@@ -93,6 +93,8 @@ func ExampleWithTimeout() {
// context deadline exceeded
}
// This example demonstrates how a value can be passed to the context
// and also how to retrieve it if it exists.
func ExampleWithValue() {
type favContextKey string
......
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