aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format
diff options
context:
space:
mode:
authorQuanyi Ma <eli@patch.sh>2022-09-22 16:27:09 +0800
committerGitHub <noreply@github.com>2022-09-22 10:27:09 +0200
commit07b3c3d0d9f128bca9b788fb1e77eaec2dd78ce6 (patch)
treed7ce79aa1ba4bfcce78d167389e943d1311c98dd /plumbing/format
parent36e1f5b74cb7fc57e6bbbcfeca66eb79a644c86b (diff)
downloadgo-git-07b3c3d0d9f128bca9b788fb1e77eaec2dd78ce6.tar.gz
Fix typos (#532)
Diffstat (limited to 'plumbing/format')
-rw-r--r--plumbing/format/packfile/scanner.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/format/packfile/scanner.go b/plumbing/format/packfile/scanner.go
index 5d9e8fb..45d480c 100644
--- a/plumbing/format/packfile/scanner.go
+++ b/plumbing/format/packfile/scanner.go
@@ -114,7 +114,7 @@ func (s *Scanner) Header() (version, objects uint32, err error) {
return
}
-// readSignature reads an returns the signature field in the packfile.
+// readSignature reads a returns the signature field in the packfile.
func (s *Scanner) readSignature() ([]byte, error) {
var sig = make([]byte, 4)
if _, err := io.ReadFull(s.r, sig); err != nil {
@@ -404,7 +404,7 @@ func (s *Scanner) Flush() error {
// - Keeps track of the current read position, for when the underlying reader
// isn't an io.SeekReader, but we still want to know the current offset.
// - Writes to the hash writer what it reads, with the aid of a smaller buffer.
-// The buffer helps avoid a performance penality for performing small writes
+// The buffer helps avoid a performance penalty for performing small writes
// to the crc32 hash writer.
type scannerReader struct {
reader io.Reader