Skip to content

Commit 657dc16

Browse files
author
kindhuge
authored
chore: remove repetitive words (#946)
Signed-off-by: kindhuge <huangpengfei@outlook.com>
1 parent 3f77d8c commit 657dc16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/snapref/encode_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func emitCopy(dst []byte, offset, length int) int {
5151
i := 0
5252
// The maximum length for a single tagCopy1 or tagCopy2 op is 64 bytes. The
5353
// threshold for this loop is a little higher (at 68 = 64 + 4), and the
54-
// length emitted down below is is a little lower (at 60 = 64 - 4), because
54+
// length emitted down below is a little lower (at 60 = 64 - 4), because
5555
// it's shorter to encode a length 67 copy as a length 60 tagCopy2 followed
5656
// by a length 7 tagCopy1 (which encodes as 3+2 bytes) than to encode it as
5757
// a length 64 tagCopy2 followed by a length 3 tagCopy2 (which encodes as

s2/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ func WriterUncompressed() WriterOption {
937937

938938
// WriterBlockSize allows to override the default block size.
939939
// Blocks will be this size or smaller.
940-
// Minimum size is 4KB and and maximum size is 4MB.
940+
// Minimum size is 4KB and maximum size is 4MB.
941941
//
942942
// Bigger blocks may give bigger throughput on systems with many cores,
943943
// and will increase compression slightly, but it will limit the possible

0 commit comments

Comments
 (0)