summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2021-08-22 03:22:34 (GMT)
committerGitHub <noreply@github.com>2021-08-22 03:22:34 (GMT)
commit1600ce5c0b964633f0db959b8d2148a38939e106 (patch)
tree983970f9f82b0d0ef29f716dd67f988822a17cf4 /examples
parente78eeec86e696f318a0ad1e71d6ad50555d1c0a9 (diff)
parent3e99d07bc09e1b82ee6191527bb3e555052c55ac (diff)
downloadlz4-1600ce5c0b964633f0db959b8d2148a38939e106.zip
lz4-1600ce5c0b964633f0db959b8d2148a38939e106.tar.gz
lz4-1600ce5c0b964633f0db959b8d2148a38939e106.tar.bz2
Merge pull request #1024 from a1346054/dev
Minor cleanup
Diffstat (limited to 'examples')
-rw-r--r--examples/blockStreaming_lineByLine.md4
-rw-r--r--examples/frameCompress.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/blockStreaming_lineByLine.md b/examples/blockStreaming_lineByLine.md
index 4735f92..90342f6 100644
--- a/examples/blockStreaming_lineByLine.md
+++ b/examples/blockStreaming_lineByLine.md
@@ -1,7 +1,7 @@
# LZ4 Streaming API Example : Line by Line Text Compression
by *Takayuki Matsuoka*
-`blockStreaming_lineByLine.c` is LZ4 Straming API example which implements line by line incremental (de)compression.
+`blockStreaming_lineByLine.c` is LZ4 Streaming API example which implements line by line incremental (de)compression.
Please note the following restrictions :
@@ -117,6 +117,6 @@ Decompression will do reverse order.
- Read compressed line from the file to buffer.
- Decompress it to the ringbuffer.
- Output decompressed plain text line to the file.
- - Forward ringbuffer offset. If offset exceedes end of the ringbuffer, reset it.
+ - Forward ringbuffer offset. If offset exceeds end of the ringbuffer, reset it.
Continue these procedure to the end of the compressed file.
diff --git a/examples/frameCompress.c b/examples/frameCompress.c
index aac4a3b..4a88b50 100644
--- a/examples/frameCompress.c
+++ b/examples/frameCompress.c
@@ -125,7 +125,7 @@ compress_file(FILE* f_in, FILE* f_out)
assert(f_in != NULL);
assert(f_out != NULL);
- /* ressource allocation */
+ /* resource allocation */
LZ4F_compressionContext_t ctx;
size_t const ctxCreation = LZ4F_createCompressionContext(&ctx, LZ4F_VERSION);
void* const src = malloc(IN_CHUNK_SIZE);
@@ -286,7 +286,7 @@ static int decompress_file(FILE* f_in, FILE* f_out)
{
assert(f_in != NULL); assert(f_out != NULL);
- /* Ressource allocation */
+ /* Resource allocation */
void* const src = malloc(IN_CHUNK_SIZE);
if (!src) { perror("decompress_file(src)"); return 1; }