Skip to content

Commit

Permalink
all: fix some comments
Browse files Browse the repository at this point in the history
Change-Id: Iee11c27052222f017b672c06ced9e129ee51619c
Reviewed-on: https://go-review.googlesource.com/c/net/+/465996
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Reviewed-by: David Chase <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Feb 8, 2023
1 parent 7e3c19c commit 415cb6d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion html/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (p *parser) clearStackToContext(s scope) {
}
}

// 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
Expand Down
2 changes: 1 addition & 1 deletion http2/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type inflow struct {
unsent int32
}

// set sets the initial window.
// init sets the initial window.
func (f *inflow) init(n int32) {
f.avail = n
}
Expand Down
2 changes: 1 addition & 1 deletion http2/hpack/hpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (d *Decoder) at(i uint64) (hf HeaderField, ok bool) {
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.
Expand Down
2 changes: 1 addition & 1 deletion http2/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ func (cs *clientStream) cleanupWriteRequest(err error) {
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 {
Expand Down
2 changes: 1 addition & 1 deletion trace/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type histogram struct {
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
Expand Down

0 comments on commit 415cb6d

Please sign in to comment.