Skip to content

Commit 415cb6d

Browse files
cuishuanggopherbot
authored andcommitted
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>
1 parent 7e3c19c commit 415cb6d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

html/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (p *parser) clearStackToContext(s scope) {
184184
}
185185
}
186186

187-
// parseGenericRawTextElements implements the generic raw text element parsing
187+
// parseGenericRawTextElement implements the generic raw text element parsing
188188
// algorithm defined in 12.2.6.2.
189189
// https://html.spec.whatwg.org/multipage/parsing.html#parsing-elements-that-contain-only-text
190190
// TODO: Since both RAWTEXT and RCDATA states are treated as tokenizer's part

http2/flow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type inflow struct {
1818
unsent int32
1919
}
2020

21-
// set sets the initial window.
21+
// init sets the initial window.
2222
func (f *inflow) init(n int32) {
2323
f.avail = n
2424
}

http2/hpack/hpack.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (d *Decoder) at(i uint64) (hf HeaderField, ok bool) {
211211
return dt.ents[dt.len()-(int(i)-staticTable.len())], true
212212
}
213213

214-
// Decode decodes an entire block.
214+
// DecodeFull decodes an entire block.
215215
//
216216
// TODO: remove this method and make it incremental later? This is
217217
// easier for debugging now.

http2/transport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ func (cs *clientStream) cleanupWriteRequest(err error) {
15691569
close(cs.donec)
15701570
}
15711571

1572-
// awaitOpenSlotForStream waits until len(streams) < maxConcurrentStreams.
1572+
// awaitOpenSlotForStreamLocked waits until len(streams) < maxConcurrentStreams.
15731573
// Must hold cc.mu.
15741574
func (cc *ClientConn) awaitOpenSlotForStreamLocked(cs *clientStream) error {
15751575
for {

trace/histogram.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type histogram struct {
3232
valueCount int64 // number of values recorded for single value
3333
}
3434

35-
// AddMeasurement records a value measurement observation to the histogram.
35+
// addMeasurement records a value measurement observation to the histogram.
3636
func (h *histogram) addMeasurement(value int64) {
3737
// TODO: assert invariant
3838
h.sum += value

0 commit comments

Comments
 (0)