From ad5be0f0c2daf367ff7013b5cdb67012d1a6af24 Mon Sep 17 00:00:00 2001 From: Marius Messerschmidt Date: Sat, 18 Nov 2023 15:43:35 +0100 Subject: [PATCH] Spelling: fix spelling of files in remaining files --- src/flashfetch.c | 2 +- src/logo/logo.c | 2 +- src/options/logo.c | 6 +++--- src/util/FFstrbuf.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/flashfetch.c b/src/flashfetch.c index bb5bb1c59..3ec690bdb 100644 --- a/src/flashfetch.c +++ b/src/flashfetch.c @@ -4,7 +4,7 @@ int main(void) { - ffInitInstance(); //This also applys default configuration to instance.config + ffInitInstance(); //This also applies default configuration to instance.config //Modify instance.config here FFOptionsModules* const options = &instance.config.modules; diff --git a/src/logo/logo.c b/src/logo/logo.c index 7c4205a40..6fa0610a8 100644 --- a/src/logo/logo.c +++ b/src/logo/logo.c @@ -105,7 +105,7 @@ void ffLogoPrintChars(const char* data, bool doColorReplacement) continue; } - //We have an escape sequence direclty as bytes. We print it, but don't increase the line length + //We have an escape sequence directly as bytes. We print it, but don't increase the line length if(*data == '\e' && *(data + 1) == '[') { const char* start = data; diff --git a/src/options/logo.c b/src/options/logo.c index 0e78bf0c1..292e5db2f 100644 --- a/src/options/logo.c +++ b/src/options/logo.c @@ -291,7 +291,7 @@ const char* ffOptionsParseLogoJsonConfig(FFOptionsLogo* options, yyjson_val* roo { uint32_t value = (uint32_t) yyjson_get_uint(val); if (value == 0) - return "Logo width must be a possitive integer"; + return "Logo width must be a positive integer"; options->width = value; continue; } @@ -299,7 +299,7 @@ const char* ffOptionsParseLogoJsonConfig(FFOptionsLogo* options, yyjson_val* roo { uint32_t value = (uint32_t) yyjson_get_uint(val); if (value == 0) - return "Logo height must be a possitive integer"; + return "Logo height must be a positive integer"; options->height = value; continue; } @@ -313,7 +313,7 @@ const char* ffOptionsParseLogoJsonConfig(FFOptionsLogo* options, yyjson_val* roo if (pos) \ { \ if (!yyjson_is_uint(pos)) \ - return "Logo padding values must be possitive integers"; \ + return "Logo padding values must be positive integers"; \ options->paddingPos = (uint32_t) yyjson_get_uint(pos); \ } FF_PARSE_PADDING_POSITON(left, paddingLeft); diff --git a/src/util/FFstrbuf.c b/src/util/FFstrbuf.c index dc941a7ef..cac5b49a9 100644 --- a/src/util/FFstrbuf.c +++ b/src/util/FFstrbuf.c @@ -305,7 +305,7 @@ uint32_t ffStrbufPreviousIndexC(const FFstrbuf* strbuf, uint32_t start, char c) { assert(start <= strbuf->length); - //We need to loop one higher than the actual index, because uint32_t is guranteed to be >= 0, so this statement would always be true + //We need to loop one higher than the actual index, because uint32_t is guaranteed to be >= 0, so this statement would always be true for(uint32_t i = start + 1; i > 0; i--) { if(strbuf->chars[i - 1] == c)