summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2021-01-07 17:43:11 (GMT)
committerGitHub <noreply@github.com>2021-01-07 17:43:11 (GMT)
commit19304881350389911a288a73d4dafd2c9b272f1f (patch)
tree113de674b19fb02c6dfeeed88f294d1a834644c2
parent023bb62c8d353704b0ce44d024900c66307d5e76 (diff)
parent909aae82604ad605bb60623731d825431cdf6b49 (diff)
downloadlz4-19304881350389911a288a73d4dafd2c9b272f1f.zip
lz4-19304881350389911a288a73d4dafd2c9b272f1f.tar.gz
lz4-19304881350389911a288a73d4dafd2c9b272f1f.tar.bz2
Merge pull request #965 from ThomasWaldmann/fix-typos
fix some typos (work by Andrea Gelmini)
-rw-r--r--lib/lz4.c2
-rw-r--r--lib/lz4.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 9f8cecb..5f524d0 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -1048,7 +1048,7 @@ LZ4_FORCE_INLINE int LZ4_compress_generic_validated(
_next_match:
/* at this stage, the following variables must be correctly set :
* - ip : at start of LZ operation
- * - match : at start of previous pattern occurence; can be within current prefix, or within extDict
+ * - match : at start of previous pattern occurrence; can be within current prefix, or within extDict
* - offset : if maybe_ext_memSegment==1 (constant)
* - lowLimit : must be == dictionary to mean "match is within extDict"; must be == source otherwise
* - token and *token : position to write 4-bits for match length; higher 4-bits for literal length supposed already written
diff --git a/lib/lz4.h b/lib/lz4.h
index ded957d..0b11eab 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -502,7 +502,7 @@ LZ4LIB_STATIC_API void LZ4_attach_dictionary(LZ4_stream_t* workingStream, const
/*! In-place compression and decompression
*
* It's possible to have input and output sharing the same buffer,
- * for highly contrained memory environments.
+ * for highly constrained memory environments.
* In both cases, it requires input to lay at the end of the buffer,
* and decompression to start at beginning of the buffer.
* Buffer size must feature some margin, hence be larger than final size.