diff options
Diffstat (limited to 'src/time/example_test.go')
| -rw-r--r-- | src/time/example_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time/example_test.go b/src/time/example_test.go index eeadcdb1c1..05eac86738 100644 --- a/src/time/example_test.go +++ b/src/time/example_test.go @@ -735,8 +735,8 @@ func ExampleTime_String() { timeWithoutNanoseconds := time.Date(2000, 2, 1, 12, 13, 14, 0, time.UTC) withoutNanoseconds := timeWithoutNanoseconds.String() - fmt.Printf("withNanoseconds = %v\n", string(withNanoseconds)) - fmt.Printf("withoutNanoseconds = %v\n", string(withoutNanoseconds)) + fmt.Printf("withNanoseconds = %v\n", withNanoseconds) + fmt.Printf("withoutNanoseconds = %v\n", withoutNanoseconds) // Output: // withNanoseconds = 2000-02-01 12:13:14.000000015 +0000 UTC |
