git » go-net » commit 71a0359

x/net/http2: Fix various typos in doc comments.

author Mike Appleby
2016-09-12 21:59:12 UTC
committer Brad Fitzpatrick
2016-09-16 03:37:56 UTC
parent de35ec43e7a9aabd6a9c54d2898220ea7e44de7d

x/net/http2: Fix various typos in doc comments.

Change-Id: I1530dadf32cc85c25dc7c88b4e7b6ebbbbcb2d3a
Reviewed-on: https://go-review.googlesource.com/29241
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>

http2/frame.go +1 -1
http2/hpack/hpack.go +1 -1
http2/http2.go +1 -1
http2/z_spec_test.go +1 -1

diff --git a/http2/frame.go b/http2/frame.go
index c9b09bb..b0c79b0 100644
--- a/http2/frame.go
+++ b/http2/frame.go
@@ -737,7 +737,7 @@ func (f *Framer) WriteSettings(settings ...Setting) error {
 	return f.endWrite()
 }
 
-// WriteSettings writes an empty SETTINGS frame with the ACK bit set.
+// WriteSettingsAck writes an empty SETTINGS frame with the ACK bit set.
 //
 // It will perform exactly one Write to the underlying Writer.
 // It is the caller's responsibility to not call other Write methods concurrently.
diff --git a/http2/hpack/hpack.go b/http2/hpack/hpack.go
index 8aa197a..135b9f6 100644
--- a/http2/hpack/hpack.go
+++ b/http2/hpack/hpack.go
@@ -57,7 +57,7 @@ func (hf HeaderField) String() string {
 	return fmt.Sprintf("header field %q = %q%s", hf.Name, hf.Value, suffix)
 }
 
-// Size returns the size of an entry per RFC 7540 section 5.2.
+// Size returns the size of an entry per RFC 7541 section 4.1.
 func (hf HeaderField) Size() uint32 {
 	// http://http2.github.io/http2-spec/compression.html#rfc.section.4.1
 	// "The size of the dynamic table is the sum of the size of
diff --git a/http2/http2.go b/http2/http2.go
index ab43a09..2e27b09 100644
--- a/http2/http2.go
+++ b/http2/http2.go
@@ -343,7 +343,7 @@ func (s *sorter) Keys(h http.Header) []string {
 }
 
 func (s *sorter) SortStrings(ss []string) {
-	// Our sorter works on s.v, which sorter owners, so
+	// Our sorter works on s.v, which sorter owns, so
 	// stash it away while we sort the user's buffer.
 	save := s.v
 	s.v = ss
diff --git a/http2/z_spec_test.go b/http2/z_spec_test.go
index 0590cfd..610b2cd 100644
--- a/http2/z_spec_test.go
+++ b/http2/z_spec_test.go
@@ -311,7 +311,7 @@ func TestSpecCoverage(t *testing.T) {
 		t.Errorf("\tSECTION %s: %s", p.section, p.sentence)
 	}
 
-	t.Logf("%d/%d (%d%%) sentances covered", complete, total, (complete/total)*100)
+	t.Logf("%d/%d (%d%%) sentences covered", complete, total, (complete/total)*100)
 }
 
 func attrSig(se xml.StartElement) string {