diff options
Diffstat (limited to 'plumbing/format')
-rw-r--r-- | plumbing/format/packfile/scanner.go | 2 | ||||
-rw-r--r-- | plumbing/format/pktline/scanner.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/packfile/scanner.go b/plumbing/format/packfile/scanner.go index 3adc26a..1a85639 100644 --- a/plumbing/format/packfile/scanner.go +++ b/plumbing/format/packfile/scanner.go @@ -292,7 +292,7 @@ func (s *Scanner) copyObject(w io.Writer) (int64, error) { // Seek sets a new offset from start, returns the old position before the change func (s *Scanner) Seek(offset int64) (previous int64, err error) { - // if seeking we asume that you are not interested on the header + // if seeking we assume that you are not interested on the header if s.version == 0 { s.version = VersionSupported } 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 { |