Merge pull request #3259 from DimitriPapadopoulos/codespell

Fix typos found by codespell
This commit is contained in:
Elliot Gorokhovsky 2022-09-09 11:15:05 -04:00 committed by GitHub
commit 6600a05949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@
* Constants * Constants
***************************************/ ***************************************/
/* Just a sential for the entires of the diagonal matrix */ /* Just a sential for the entries of the diagonal matrix */
#define ZSTD_EDIST_DIAG_MAX (S32)(1 << 30) #define ZSTD_EDIST_DIAG_MAX (S32)(1 << 30)
/* How large should a snake be to be considered a 'big' snake. /* How large should a snake be to be considered a 'big' snake.
@ -57,8 +57,8 @@ typedef struct {
const BYTE* src; const BYTE* src;
size_t dictSize; size_t dictSize;
size_t srcSize; size_t srcSize;
S32* forwardDiag; /* Entires of the forward diagonal stored here */ S32* forwardDiag; /* Entries of the forward diagonal stored here */
S32* backwardDiag; /* Entires of the backward diagonal stored here. S32* backwardDiag; /* Entries of the backward diagonal stored here.
* Note: this buffer and the 'forwardDiag' buffer * Note: this buffer and the 'forwardDiag' buffer
* are contiguous. See the ZSTD_eDist_genSequences */ * are contiguous. See the ZSTD_eDist_genSequences */
ZSTD_eDist_match* matches; /* Accumulate matches of length 1 in this buffer. ZSTD_eDist_match* matches; /* Accumulate matches of length 1 in this buffer.
@ -460,7 +460,7 @@ static size_t ZSTD_eDist_convertMatchesToSequences(ZSTD_Sequence* sequences,
} }
/*-************************************* /*-*************************************
* Interal utils * Internal utils
***************************************/ ***************************************/
static size_t ZSTD_eDist_hamingDist(const BYTE* const a, static size_t ZSTD_eDist_hamingDist(const BYTE* const a,

View File

@ -836,7 +836,7 @@ ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream* zds);
/*! ZSTD_decompressStream() : /*! ZSTD_decompressStream() :
* Streaming decompression function. * Streaming decompression function.
* Call repetitively to consume full input updating it as necessary. * Call repetitively to consume full input updating it as necessary.
* Funtion will update both input and output `pos` fields exposing current state via these fields: * Function will update both input and output `pos` fields exposing current state via these fields:
* - `input.pos < input.size`, some input remaining and caller should provide remaining input * - `input.pos < input.size`, some input remaining and caller should provide remaining input
* on the next call. * on the next call.
* - `output.pos < output.size`, decoder finished and flushed all remaining buffers. * - `output.pos < output.size`, decoder finished and flushed all remaining buffers.
@ -844,7 +844,7 @@ ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream* zds);
* call ZSTD_decompressStream() again to flush remaining data to output. * call ZSTD_decompressStream() again to flush remaining data to output.
* Note : with no additional input, amount of data flushed <= ZSTD_BLOCKSIZE_MAX. * Note : with no additional input, amount of data flushed <= ZSTD_BLOCKSIZE_MAX.
* *
* @return : 0 when a frame is completly decoded and fully flushed, * @return : 0 when a frame is completely decoded and fully flushed,
* or an error code, which can be tested using ZSTD_isError(), * or an error code, which can be tested using ZSTD_isError(),
* or any other value > 0, which means there is some decoding or flushing to do to complete current frame. * or any other value > 0, which means there is some decoding or flushing to do to complete current frame.
*/ */