diff options
Diffstat (limited to 'src/testing/example.go')
| -rw-r--r-- | src/testing/example.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/example.go b/src/testing/example.go index e5bce7af4e..b9955500e6 100644 --- a/src/testing/example.go +++ b/src/testing/example.go @@ -87,7 +87,7 @@ func runExample(eg InternalExample) (ok bool) { // Clean up in a deferred call so we can recover if the example panics. defer func() { - dstr := fmtDuration(time.Now().Sub(start)) + dstr := fmtDuration(time.Since(start)) // Close pipe, restore stdout, get output. w.Close() |
