From 78615844f536c6664909e3269652f4938fd2b027 Mon Sep 17 00:00:00 2001
From: Reilly Watson
Date: Tue, 21 Nov 2017 11:00:58 -0500
Subject: [PATCH] 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
---
doc/diagnostics.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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.
--
2.50.0