Skip to content

Commit 9be1ff2

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some comments
Change-Id: I4a06e68307ac3deb5b2e1bab9235ebe01dcd4ea6 Reviewed-on: https://go-review.googlesource.com/c/net/+/713380 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 6e243da commit 9be1ff2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

http2/frame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ var defaultRFC9218Priority = PriorityParam{
11891189
// PriorityParam struct below is a superset of both schemes. The exported
11901190
// symbols are from RFC 7540 and the non-exported ones are from RFC 9218.
11911191

1192-
// PriorityParam are the stream prioritzation parameters.
1192+
// PriorityParam are the stream prioritization parameters.
11931193
type PriorityParam struct {
11941194
// StreamDep is a 31-bit stream identifier for the
11951195
// stream that this stream depends on. Zero means no

internal/httpsfv/httpsfv_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ func TestConsumeDisplayString(t *testing.T) {
12491249
in: `%"f%C3%BC%C3%BC"`,
12501250
},
12511251
{
1252-
name: "invalid unqouted string",
1252+
name: "invalid unquoted string",
12531253
in: "%foo",
12541254
},
12551255
{
@@ -1358,7 +1358,7 @@ func TestParseDisplayString(t *testing.T) {
13581358
in: `%"f%C3%BC%C3%BC"`,
13591359
},
13601360
{
1361-
name: "invalid unqouted string",
1361+
name: "invalid unquoted string",
13621362
in: "%foo",
13631363
},
13641364
{

webdav/if_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestParseIfHeader(t *testing.T) {
134134
},
135135
}, {
136136
"section 7.5.1",
137-
`<http://www.example.com/users/f/fielding/index.html>
137+
`<http://www.example.com/users/f/fielding/index.html>
138138
(<urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6>)`,
139139
ifHeader{
140140
lists: []ifList{{
@@ -180,7 +180,7 @@ func TestParseIfHeader(t *testing.T) {
180180
},
181181
}, {
182182
"section 9.9.6",
183-
`(<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>)
183+
`(<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>)
184184
(<urn:uuid:e454f3f3-acdc-452a-56c7-00a5c91e4b77>)`,
185185
ifHeader{
186186
lists: []ifList{{
@@ -205,7 +205,7 @@ func TestParseIfHeader(t *testing.T) {
205205
},
206206
}, {
207207
"section 10.4.6",
208-
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
208+
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
209209
["I am an ETag"])
210210
(["I am another ETag"])`,
211211
ifHeader{
@@ -223,7 +223,7 @@ func TestParseIfHeader(t *testing.T) {
223223
},
224224
}, {
225225
"section 10.4.7",
226-
`(Not <urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
226+
`(Not <urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
227227
<urn:uuid:58f202ac-22cf-11d1-b12d-002035b29092>)`,
228228
ifHeader{
229229
lists: []ifList{{
@@ -237,7 +237,7 @@ func TestParseIfHeader(t *testing.T) {
237237
},
238238
}, {
239239
"section 10.4.8",
240-
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)
240+
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)
241241
(Not <DAV:no-lock>)`,
242242
ifHeader{
243243
lists: []ifList{{
@@ -253,8 +253,8 @@ func TestParseIfHeader(t *testing.T) {
253253
},
254254
}, {
255255
"section 10.4.9",
256-
`</resource1>
257-
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
256+
`</resource1>
257+
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
258258
[W/"A weak ETag"]) (["strong ETag"])`,
259259
ifHeader{
260260
lists: []ifList{{
@@ -273,7 +273,7 @@ func TestParseIfHeader(t *testing.T) {
273273
},
274274
}, {
275275
"section 10.4.10",
276-
`<http://www.example.com/specs/>
276+
`<http://www.example.com/specs/>
277277
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)`,
278278
ifHeader{
279279
lists: []ifList{{

webdav/internal/xml/marshal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ func TestDecodeEncode(t *testing.T) {
18461846
in.WriteString(`<?xml version="1.0" encoding="UTF-8"?>
18471847
<?Target Instruction?>
18481848
<root>
1849-
</root>
1849+
</root>
18501850
`)
18511851
dec := NewDecoder(&in)
18521852
enc := NewEncoder(&out)

0 commit comments

Comments
 (0)