diff options
author | Ioannis Georgoulas <geototti21@hotmail.com> | 2017-07-15 12:16:56 -0600 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-06-12 22:33:54 +0000 |
commit | 2cf9732e8aae92edfa55a8d0e3cebea9154aced7 (patch) | |
tree | 75146803e3505881526a856f88f10183c0926e3d /src/context | |
parent | be36bd996eb120741ed866396e607fcd5e0b702a (diff) | |
download | go-2cf9732e8aae92edfa55a8d0e3cebea9154aced7.tar.gz go-2cf9732e8aae92edfa55a8d0e3cebea9154aced7.zip |
context: add docs to ExampleWithValue
Change-Id: I3a83c63f4db2e46fd96f373378a429896e93f9d1
Reviewed-on: https://go-review.googlesource.com/48861
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/context')
-rw-r--r-- | src/context/example_test.go | 2 |
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 |