mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
all: fix some comments
Change-Id: I4a06e68307ac3deb5b2e1bab9235ebe01dcd4ea6 Reviewed-on: https://go-review.googlesource.com/c/net/+/713380 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
@@ -1189,7 +1189,7 @@ var defaultRFC9218Priority = PriorityParam{
|
||||
// PriorityParam struct below is a superset of both schemes. The exported
|
||||
// symbols are from RFC 7540 and the non-exported ones are from RFC 9218.
|
||||
|
||||
// PriorityParam are the stream prioritzation parameters.
|
||||
// PriorityParam are the stream prioritization parameters.
|
||||
type PriorityParam struct {
|
||||
// StreamDep is a 31-bit stream identifier for the
|
||||
// stream that this stream depends on. Zero means no
|
||||
|
||||
@@ -1249,7 +1249,7 @@ func TestConsumeDisplayString(t *testing.T) {
|
||||
in: `%"f%C3%BC%C3%BC"`,
|
||||
},
|
||||
{
|
||||
name: "invalid unqouted string",
|
||||
name: "invalid unquoted string",
|
||||
in: "%foo",
|
||||
},
|
||||
{
|
||||
@@ -1358,7 +1358,7 @@ func TestParseDisplayString(t *testing.T) {
|
||||
in: `%"f%C3%BC%C3%BC"`,
|
||||
},
|
||||
{
|
||||
name: "invalid unqouted string",
|
||||
name: "invalid unquoted string",
|
||||
in: "%foo",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -134,7 +134,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 7.5.1",
|
||||
`<http://www.example.com/users/f/fielding/index.html>
|
||||
`<http://www.example.com/users/f/fielding/index.html>
|
||||
(<urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6>)`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
@@ -180,7 +180,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 9.9.6",
|
||||
`(<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>)
|
||||
`(<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>)
|
||||
(<urn:uuid:e454f3f3-acdc-452a-56c7-00a5c91e4b77>)`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
@@ -205,7 +205,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 10.4.6",
|
||||
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
["I am an ETag"])
|
||||
(["I am another ETag"])`,
|
||||
ifHeader{
|
||||
@@ -223,7 +223,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 10.4.7",
|
||||
`(Not <urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
`(Not <urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
<urn:uuid:58f202ac-22cf-11d1-b12d-002035b29092>)`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
@@ -237,7 +237,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 10.4.8",
|
||||
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)
|
||||
`(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)
|
||||
(Not <DAV:no-lock>)`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
@@ -253,8 +253,8 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 10.4.9",
|
||||
`</resource1>
|
||||
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
`</resource1>
|
||||
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>
|
||||
[W/"A weak ETag"]) (["strong ETag"])`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
@@ -273,7 +273,7 @@ func TestParseIfHeader(t *testing.T) {
|
||||
},
|
||||
}, {
|
||||
"section 10.4.10",
|
||||
`<http://www.example.com/specs/>
|
||||
`<http://www.example.com/specs/>
|
||||
(<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>)`,
|
||||
ifHeader{
|
||||
lists: []ifList{{
|
||||
|
||||
@@ -1846,7 +1846,7 @@ func TestDecodeEncode(t *testing.T) {
|
||||
in.WriteString(`<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?Target Instruction?>
|
||||
<root>
|
||||
</root>
|
||||
</root>
|
||||
`)
|
||||
dec := NewDecoder(&in)
|
||||
enc := NewEncoder(&out)
|
||||
|
||||
Reference in New Issue
Block a user