]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix some typos in diagnostics.html
authorReilly Watson <reillywatson@gmail.com>
Tue, 21 Nov 2017 16:00:58 +0000 (11:00 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Nov 2017 20:29:01 +0000 (20:29 +0000)
The section about custom pprof paths referenced the wrong path.

This also fixes a couple minor grammatical issues elsewhere in the doc.

Fixes #22832

Change-Id: I890cceb53a13c1958d9cf958c658ccfcbb6863d5
Reviewed-on: https://go-review.googlesource.com/79035
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
doc/diagnostics.html

index 36464760edb448d5562750df9afc262d69562b58..8f5b59ecee77eb7282e6fbad55a2c24ea20c5802 100644 (file)
@@ -178,7 +178,7 @@ exported from the package.
 
 <p>
 For example, the following example will serve the pprof.Profile
-handler on :7777 at /pprof/profile:
+handler on :7777 at /custom_debug_path/profile:
 </p>
 
 <p>
@@ -389,7 +389,7 @@ allocated objects as well as goroutines, finalizers, and more.</li>
 <li><code><a href="/pkg/runtime#NumGoroutine">runtime.NumGoroutine</a></code>
 returns the number of current goroutines.
 The value can be monitored to see whether enough goroutines are
-utilized or to detect the goroutine leaks.</li>
+utilized, or to detect goroutine leaks.</li>
 </ul>
 
 <h3 id="execution-tracer">Execution tracer</h3>
@@ -433,7 +433,7 @@ environmental variable is set accordingly.</p>
 
 <ul>
 <li>GODEBUG=gctrace=1 prints garbage collector events at
-the event of collection, summarizing the amount of memory collected
+each collection, summarizing the amount of memory collected
 and the length of the pause.</li>
-<li>GODEBUG=schedtrace=X prints scheduling events at every X milliseconds.</li>
+<li>GODEBUG=schedtrace=X prints scheduling events every X milliseconds.</li>
 </ul>