From e8645ed92ebfabae913a8510dcdfc63a396ae18b Mon Sep 17 00:00:00 2001 From: Ang Date: Mon, 20 Apr 2026 14:12:40 +0800 Subject: [PATCH] docs: fix typos (#1705) ## Summary Fix typos found via `codespell -S *.txt,*.yaml,generate_kerning_ligature_epub.py -L currenty,flate,ser,localy,logicaly,ans,clen,portugues,notin,curren` ## Additional Context * Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks, specific areas to focus on). --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? _**NO**_ --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- README.md | 4 ++-- lib/Logging/Logging.cpp | 2 +- lib/OpdsParser/OpdsStream.h | 2 +- lib/uzlib/src/tinflate.c | 2 +- src/network/OtaUpdater.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c27ff1e2e..c8a0f3de5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Xteink firmware. It aims to match or improve upon the standard EPUB reading expe E-paper devices are fantastic for reading, but most commercially available readers are closed systems with limited customisation. The **Xteink X4** is an affordable, e-paper device, however the official firmware remains closed. -CrossPoint exists partly as a fun side-project and partly to open up the ecosystem and truely unlock the device's +CrossPoint exists partly as a fun side-project and partly to open up the ecosystem and truly unlock the device's potential. CrossPoint Reader aims to: @@ -179,7 +179,7 @@ If you are new to the codebase, start with the [contributing docs](./docs/contri If you're looking for a way to help out, take a look at the [ideas discussion board](https://github.com/crosspoint-reader/crosspoint-reader/discussions/categories/ideas). If there's something there you'd like to work on, leave a comment so that we can avoid duplicated effort. -Everyone here is a volunteer, so please be respectful and patient. For more details on our goverance and community +Everyone here is a volunteer, so please be respectful and patient. For more details on our governance and community principles, please see [GOVERNANCE.md](GOVERNANCE.md). ### To submit a contribution: diff --git a/lib/Logging/Logging.cpp b/lib/Logging/Logging.cpp index 3306f2542..7b483657b 100644 --- a/lib/Logging/Logging.cpp +++ b/lib/Logging/Logging.cpp @@ -42,7 +42,7 @@ void logPrintf(const char* level, const char* origin, const char* format, ...) { { unsigned long ms = millis(); int len = snprintf(c, sizeof(buf), "[%lu] [%s] [%s] ", ms, level, origin); - // erro while writing => return + // error while writing => return if (len < 0) { va_end(args); return; diff --git a/lib/OpdsParser/OpdsStream.h b/lib/OpdsParser/OpdsStream.h index c72f2b6b5..5dde2a24c 100644 --- a/lib/OpdsParser/OpdsStream.h +++ b/lib/OpdsParser/OpdsStream.h @@ -8,7 +8,7 @@ class OpdsParserStream : public Stream { public: explicit OpdsParserStream(OpdsParser& parser); - // That functions are not implimented for that stream + // That functions are not implemented for that stream int available() override; int peek() override; int read() override; diff --git a/lib/uzlib/src/tinflate.c b/lib/uzlib/src/tinflate.c index 3ffd16b52..9e7bc88b7 100644 --- a/lib/uzlib/src/tinflate.c +++ b/lib/uzlib/src/tinflate.c @@ -612,7 +612,7 @@ next_blk: if (res == TINF_DONE && !d->bfinal) { /* the block has ended (without producing more data), but we - can't return without data, so start procesing next block */ + can't return without data, so start processing next block */ goto next_blk; } diff --git a/src/network/OtaUpdater.cpp b/src/network/OtaUpdater.cpp index c5d405c07..69f7e4782 100644 --- a/src/network/OtaUpdater.cpp +++ b/src/network/OtaUpdater.cpp @@ -214,7 +214,7 @@ OtaUpdater::OtaUpdaterError OtaUpdater::installUpdate() { .url = otaUrl.c_str(), .timeout_ms = 15000, /* Default HTTP client buffer size 512 byte only - * not sufficent to handle URL redirection cases or + * not sufficient to handle URL redirection cases or * parsing of large HTTP headers. */ .buffer_size = 8192,