aboutsummaryrefslogtreecommitdiff
path: root/src/time/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/example_test.go')
-rw-r--r--src/time/example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time/example_test.go b/src/time/example_test.go
index 2f890db2f4..5a037daeaf 100644
--- a/src/time/example_test.go
+++ b/src/time/example_test.go
@@ -167,8 +167,8 @@ func statusUpdate() string { return "" }
func ExampleTick() {
c := time.Tick(5 * time.Second)
- for now := range c {
- fmt.Printf("%v %s\n", now, statusUpdate())
+ for next := range c {
+ fmt.Printf("%v %s\n", next, statusUpdate())
}
}