small linter & typo fixes

This commit is contained in:
Lucas Clemente
2016-06-06 09:37:17 +02:00
parent 3f86e0f198
commit d5aced6e03
4 changed files with 5 additions and 5 deletions

View File

@@ -318,13 +318,13 @@ var _ = Describe("StreamFrame", func() {
Expect(f.streamIDLen).To(Equal(protocol.ByteCount(2)))
})
It("determines the length of a 1 byte StreamID", func() {
It("determines the length of a 3 byte StreamID", func() {
f := &StreamFrame{StreamID: 0xFFFFFF}
f.calculateStreamIDLength()
Expect(f.streamIDLen).To(Equal(protocol.ByteCount(3)))
})
It("determines the length of a 1 byte StreamID", func() {
It("determines the length of a 4 byte StreamID", func() {
f := &StreamFrame{StreamID: 0xFFFFFFFF}
f.calculateStreamIDLength()
Expect(f.streamIDLen).To(Equal(protocol.ByteCount(4)))

View File

@@ -210,7 +210,7 @@ func (s *Server) SetQuicHeaders(hdr http.Header) error {
}
// ListenAndServeQUIC listens on the UDP network address addr and calls the
// handler for HTTP/2 requests on incoming conections. http.DefaultServeMux is
// handler for HTTP/2 requests on incoming connections. http.DefaultServeMux is
// used when handler is nil.
func ListenAndServeQUIC(addr, certFile, keyFile string, handler http.Handler) error {
server := &Server{

View File

@@ -1,7 +1,7 @@
package main
import (
_ "github.com/clipperhouse/slice"
_ "github.com/clipperhouse/linkedlist"
_ "github.com/clipperhouse/slice"
_ "github.com/clipperhouse/stringer"
)

View File

@@ -56,7 +56,7 @@ func (l *ByteIntervalList) Init() *ByteIntervalList {
return l
}
// New returns an initialized list.
// NewByteIntervalList returns an initialized list.
func NewByteIntervalList() *ByteIntervalList { return new(ByteIntervalList).Init() }
// Len returns the number of elements of list l.