From 046da9b77e5fabe597df7247cd9374bf9962c6bd Mon Sep 17 00:00:00 2001 From: cuishuang Date: Thu, 17 Mar 2022 20:22:37 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- SCRIPTING | 2 +- src/atomicvar.h | 4 ++-- src/http_parser.c | 2 +- src/http_parser.h | 2 +- src/zmalloc.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SCRIPTING b/SCRIPTING index c15a03e4..07503971 100644 --- a/SCRIPTING +++ b/SCRIPTING @@ -59,7 +59,7 @@ Setup thread:stop() - stop the thread Only boolean, nil, number, and string values or tables of the same may be - transfered via get()/set() and thread:stop() can only be called while the + transferred via get()/set() and thread:stop() can only be called while the thread is running. Running diff --git a/src/atomicvar.h b/src/atomicvar.h index 84a5bbc5..fd6aa207 100644 --- a/src/atomicvar.h +++ b/src/atomicvar.h @@ -16,12 +16,12 @@ * pthread_mutex_t myvar_mutex; * atomicSet(myvar,12345); * - * If atomic primitives are availble (tested in config.h) the mutex + * If atomic primitives are available (tested in config.h) the mutex * is not used. * * Never use return value from the macros, instead use the AtomicGetIncr() * if you need to get the current value and increment it atomically, like - * in the followign example: + * in the following example: * * long oldvalue; * atomicGetIncr(myvar,oldvalue,1); diff --git a/src/http_parser.c b/src/http_parser.c index 8d851245..8120e155 100644 --- a/src/http_parser.c +++ b/src/http_parser.c @@ -1739,7 +1739,7 @@ size_t http_parser_execute (http_parser *parser, /* Here we call the headers_complete callback. This is somewhat * different than other callbacks because if the user returns 1, we * will interpret that as saying that this message has no body. This - * is needed for the annoying case of recieving a response to a HEAD + * is needed for the annoying case of receiving a response to a HEAD * request. * * We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so diff --git a/src/http_parser.h b/src/http_parser.h index fd2a5641..6479d8c4 100644 --- a/src/http_parser.h +++ b/src/http_parser.h @@ -77,7 +77,7 @@ typedef struct http_parser_settings http_parser_settings; * chunked' headers that indicate the presence of a body. * * Returning `2` from on_headers_complete will tell parser that it should not - * expect neither a body nor any futher responses on this connection. This is + * expect neither a body nor any further responses on this connection. This is * useful for handling responses to a CONNECT request which may not contain * `Upgrade` or `Connection: upgrade` headers. * diff --git a/src/zmalloc.c b/src/zmalloc.c index 094dd80f..f63e8a93 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -353,7 +353,7 @@ size_t zmalloc_get_private_dirty(long pid) { } /* Returns the size of physical memory (RAM) in bytes. - * It looks ugly, but this is the cleanest way to achive cross platform results. + * It looks ugly, but this is the cleanest way to achieve cross platform results. * Cleaned up from: * * http://nadeausoftware.com/articles/2012/09/c_c_tip_how_get_physical_memory_size_system