aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/pktline/scanner.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-12-06 23:17:16 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-12-06 23:18:50 +0100
commit5990aeb7198a4961a363eeb422a3faa57c8dc029 (patch)
tree67dfad381361e34b18b9afcb36142d97a29117ac /plumbing/format/pktline/scanner.go
parent17e3f85613b511c4134ebba5648142887a7b8812 (diff)
downloadgo-git-5990aeb7198a4961a363eeb422a3faa57c8dc029.tar.gz
revision based on goreportcard.com
Diffstat (limited to 'plumbing/format/pktline/scanner.go')
-rw-r--r--plumbing/format/pktline/scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/pktline/scanner.go b/plumbing/format/pktline/scanner.go
index 4eec18c..4af254f 100644
--- a/plumbing/format/pktline/scanner.go
+++ b/plumbing/format/pktline/scanner.go
@@ -77,7 +77,7 @@ func (s *Scanner) Bytes() []byte {
}
// Method readPayloadLen returns the payload length by reading the
-// pkt-len and substracting the pkt-len size.
+// pkt-len and subtracting the pkt-len size.
func (s *Scanner) readPayloadLen() (int, error) {
if _, err := io.ReadFull(s.r, s.len[:]); err != nil {
if err == io.ErrUnexpectedEOF {