]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/trace: fix file name in example
authorRodolfo Carvalho <rhcarvalho@gmail.com>
Fri, 19 Jun 2020 15:31:25 +0000 (15:31 +0000)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Fri, 19 Jun 2020 16:14:19 +0000 (16:14 +0000)
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: 3535e62bf8dd02dd9955a28e7fa9cca98de89efd
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>
src/runtime/trace/trace.go

index 7f9d72a846e63cc607f5db4d0c109e1aa7bd456d..b34aef03c511a9c731612939c765350c888a79a2 100644 (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