Skip to contentSkip to conversation

lib: zstd: Fix typo 'the the' in comment

PATCH In review Slark Xiao 2 participants 2 messages Jul 22, 2022 – Oct 17, 2022 Zstd

lore
Share & tools
lore

Slark Xiao

author
#0 lore raw

PATCH 1/1 lib: zstd: Fix typo 'the the' in comment

Replace 'the the' with 'the' in the comment.

---
 lib/zstd/compress/zstd_compress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/zstd/compress/zstd_compress.c +1 -1
index a4e916008b3a..73fff4c60149 100644
@@ -4441,7 +4441,7 @@ static size_t ZSTD_validateSequence(U32 offCode, U32 matchLength,
                                     size_t posInSrc, U32 windowLog, size_t dictSize, U32 minMatch) {
     size_t offsetBound;
     U32 windowSize = 1 << windowLog;
-    /* posInSrc represents the amount of data the the decoder would decode up to this point.
+    /* posInSrc represents the amount of data the decoder would decode up to this point.
      * As long as the amount of data decoded is less than or equal to window size, offsets may be
      * larger than the total length of output decoded in order to reference the dict, even larger than
      * window size. After output surpasses windowSize, we're limited to windowSize offsets again.
Signature · 1 line
2.25.1
#1 lore raw
Quoted 8 lines · Slark Xiao
Quoted 2 lines

Replace 'the the' with 'the' in the comment.

Hi Slark, I've already merged another patch which makes this change into my tree, so I'm dropping this patch.

Best,
Nick Terrell

Quoted 20 lines

---
lib/zstd/compress/zstd_compress.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
lib/zstd/compress/zstd_compress.c +1 -1
index a4e916008b3a..73fff4c60149 100644
@@ -4441,7 +4441,7 @@ static size_t ZSTD_validateSequence(U32 offCode, U32 matchLength,
                                    size_t posInSrc, U32 windowLog, size_t dictSize, U32 minMatch) {
    size_t offsetBound;
    U32 windowSize = 1 << windowLog;
-    /* posInSrc represents the amount of data the the decoder would decode up to this point.
+    /* posInSrc represents the amount of data the decoder would decode up to this point.
     * As long as the amount of data decoded is less than or equal to window size, offsets may be
     * larger than the total length of output decoded in order to reference the dict, even larger than
     * window size. After output surpasses windowSize, we're limited to windowSize offsets again.
Signature · 1 line
2.25.1