From: Reilly Watson
Date: Tue, 21 Nov 2017 16:00:58 +0000 (-0500)
Subject: doc: fix some typos in diagnostics.html
X-Git-Tag: go1.10beta1~179
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=78615844f536c6664909e3269652f4938fd2b027;p=gostls13.git
doc: fix some typos in diagnostics.html
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
---
diff --git a/doc/diagnostics.html b/doc/diagnostics.html
index 36464760ed..8f5b59ecee 100644
--- a/doc/diagnostics.html
+++ b/doc/diagnostics.html
@@ -178,7 +178,7 @@ exported from the package.
For example, the following example will serve the pprof.Profile
-handler on :7777 at /pprof/profile:
+handler on :7777 at /custom_debug_path/profile:
@@ -389,7 +389,7 @@ allocated objects as well as goroutines, finalizers, and more.
runtime.NumGoroutine
returns the number of current goroutines.
The value can be monitored to see whether enough goroutines are
-utilized or to detect the goroutine leaks.
+utilized, or to detect goroutine leaks.
Execution tracer
@@ -433,7 +433,7 @@ environmental variable is set accordingly.
- 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.
-- GODEBUG=schedtrace=X prints scheduling events at every X milliseconds.
+- GODEBUG=schedtrace=X prints scheduling events every X milliseconds.