aboutsummaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
Diffstat (limited to 'src/context')
-rw-r--r--src/context/example_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context/example_test.go b/src/context/example_test.go
index b2c2aa921d..2b28b57704 100644
--- a/src/context/example_test.go
+++ b/src/context/example_test.go
@@ -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