Skip to contentSkip to conversation

lib: zstd: Fix comment typo

PATCH In review Xin Gao 2 participants 2 messages Jul 22, 2022 – Oct 17, 2022 Zstd

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 lib: zstd: Fix comment typo

The double `when' is duplicated in line 999, remove one.

---
 lib/zstd/decompress/zstd_decompress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/zstd/decompress/zstd_decompress.c +1 -1
index b4d81d84479a..6928e85f9d19 100644
@@ -996,7 +996,7 @@ size_t ZSTD_decompress(void* dst, size_t dstCapacity, const void* src, size_t sr
 size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx) { return dctx->expected; }
 
 /*
- * Similar to ZSTD_nextSrcSizeToDecompress(), but when when a block input can be streamed,
+ * Similar to ZSTD_nextSrcSizeToDecompress(), but when a block input can be streamed,
  * we allow taking a partial block as the input. Currently only raw uncompressed blocks can
  * be streamed.
  *
Signature · 1 line
2.30.2
#1 lore raw
Quoted 5 lines · Xin Gao
Quoted 2 lines

The double `when' is duplicated in line 999, remove one.

Thanks for the patch! I've taken it into my tree for the v6.2 merge window.

Best,
Nick Terrell

Quoted 22 lines

---
lib/zstd/decompress/zstd_decompress.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
lib/zstd/decompress/zstd_decompress.c +1 -1
index b4d81d84479a..6928e85f9d19 100644
@@ -996,7 +996,7 @@ size_t ZSTD_decompress(void* dst, size_t dstCapacity, const void* src, size_t sr
 size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx) { return dctx->expected; }
 
 /*
- * Similar to ZSTD_nextSrcSizeToDecompress(), but when when a block input can be streamed,
+ * Similar to ZSTD_nextSrcSizeToDecompress(), but when a block input can be streamed,
 * we allow taking a partial block as the input. Currently only raw uncompressed blocks can
 * be streamed.
 *
Signature · 1 line
2.30.2