Browse Source

Fix the variable name and typo in the comments.

Tetsuo Kiso 10 years ago
parent
commit
8caa9dc5a9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hpack/hpack.go

+ 2 - 2
hpack/hpack.go

@@ -96,7 +96,7 @@ func (d *Decoder) SetAllowedMaxDynamicTableSize(v uint32) {
 }
 }
 
 
 type dynamicTable struct {
 type dynamicTable struct {
-	// s is the FIFO described at
+	// ents is the FIFO described at
 	// http://http2.github.io/http2-spec/compression.html#rfc.section.2.3.2
 	// http://http2.github.io/http2-spec/compression.html#rfc.section.2.3.2
 	// The newest (low index) is append at the end, and items are
 	// The newest (low index) is append at the end, and items are
 	// evicted from the front.
 	// evicted from the front.
@@ -276,7 +276,7 @@ func (v indexType) indexed() bool   { return v == indexedTrue }
 func (v indexType) sensitive() bool { return v == indexedNever }
 func (v indexType) sensitive() bool { return v == indexedNever }
 
 
 // returns errNeedMore if there isn't enough data available.
 // returns errNeedMore if there isn't enough data available.
-// any other error is atal.
+// any other error is fatal.
 // consumes d.buf iff it returns nil.
 // consumes d.buf iff it returns nil.
 // precondition: must be called with len(d.buf) > 0
 // precondition: must be called with len(d.buf) > 0
 func (d *Decoder) parseHeaderFieldRepr() error {
 func (d *Decoder) parseHeaderFieldRepr() error {