]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: use package prefix in examples
authorKevin Burke <kev@inburke.com>
Wed, 18 Apr 2018 22:49:06 +0000 (15:49 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 18 Apr 2018 23:58:54 +0000 (23:58 +0000)
commitf3962b1849a405995420fef4452f2a8493aa19e0
treefc5d46cce8315ea65a560476173beb3f31c6a0c0
parent744ccbb852f18241c637b2c6314b35fce7359916
sync/atomic: use package prefix in examples

Previously these examples declared "var v Value" but any caller would
need to write "var v atomic.Value", so we should use the external
package declaration form to avoid confusion about where Value comes
from.

Change-Id: Ic0b1a05fb6b700da61cfc8efca594c49a9bedb69
Reviewed-on: https://go-review.googlesource.com/107975
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/sync/atomic/example_test.go [new file with mode: 0644]
src/sync/atomic/value_test.go