runtime/trace: fix file name in example

The preceding paragraph suggests the test run will produce a file called trace.out.
The same name, trace.out, is used in the output from go help testflag, thus we change the go test line instead of changing the preceding paragraph.

Change-Id: Ib1fa7e49e540853e263a2399b16040ea6f41b703
GitHub-Last-Rev: 3535e62bf8
GitHub-Pull-Request: golang/go#39709
Reviewed-on: https://go-review.googlesource.com/c/go/+/238997
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Rodolfo Carvalho 2020-06-19 15:31:25 +00:00 committed by Hyang-Ah Hana Kim
parent af09ff1981
commit b424a312ea
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
// command runs the test in the current directory and writes the trace
// file (trace.out).
//
// go test -trace=test.out
// go test -trace=trace.out
//
// This runtime/trace package provides APIs to add equivalent tracing
// support to a standalone program. See the Example that demonstrates