1
0
mirror of https://github.com/golang/go synced 2024-11-23 12:20:12 -07:00

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.
This commit is contained in:
Rodolfo Carvalho 2020-06-19 17:14:00 +02:00 committed by GitHub
parent af09ff1981
commit 3535e62bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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