all: fix some comments
Change-Id: Iee11c27052222f017b672c06ced9e129ee51619c
Reviewed-on: https://go-review.googlesource.com/c/net/+/465996
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/html/parse.go b/html/parse.go
index 291c919..46a89ed 100644
--- a/html/parse.go
+++ b/html/parse.go
@@ -184,7 +184,7 @@
}
}
-// parseGenericRawTextElements implements the generic raw text element parsing
+// parseGenericRawTextElement implements the generic raw text element parsing
// algorithm defined in 12.2.6.2.
// https://html.spec.whatwg.org/multipage/parsing.html#parsing-elements-that-contain-only-text
// TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part
diff --git a/http2/flow.go b/http2/flow.go
index 750ac52..b7dbd18 100644
--- a/http2/flow.go
+++ b/http2/flow.go
@@ -18,7 +18,7 @@
unsent int32
}
-// set sets the initial window.
+// init sets the initial window.
func (f *inflow) init(n int32) {
f.avail = n
}
diff --git a/http2/hpack/hpack.go b/http2/hpack/hpack.go
index ebdfbee..b184a27 100644
--- a/http2/hpack/hpack.go
+++ b/http2/hpack/hpack.go
@@ -211,7 +211,7 @@
return dt.ents[dt.len()-(int(i)-staticTable.len())], true
}
-// Decode decodes an entire block.
+// DecodeFull decodes an entire block.
//
// TODO: remove this method and make it incremental later? This is
// easier for debugging now.
diff --git a/http2/transport.go b/http2/transport.go
index b43ec10..05ba23d 100644
--- a/http2/transport.go
+++ b/http2/transport.go
@@ -1569,7 +1569,7 @@
close(cs.donec)
}
-// awaitOpenSlotForStream waits until len(streams) < maxConcurrentStreams.
+// awaitOpenSlotForStreamLocked waits until len(streams) < maxConcurrentStreams.
// Must hold cc.mu.
func (cc *ClientConn) awaitOpenSlotForStreamLocked(cs *clientStream) error {
for {
diff --git a/trace/histogram.go b/trace/histogram.go
index 9bf4286..d6c7110 100644
--- a/trace/histogram.go
+++ b/trace/histogram.go
@@ -32,7 +32,7 @@
valueCount int64 // number of values recorded for single value
}
-// AddMeasurement records a value measurement observation to the histogram.
+// addMeasurement records a value measurement observation to the histogram.
func (h *histogram) addMeasurement(value int64) {
// TODO: assert invariant
h.sum += value