Fix minor spelling errors

This commit is contained in:
Jonathan G Rennison
2024-06-17 17:55:45 +01:00
parent ffbc5aff6d
commit b416a41f8b
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ public:
/**
* The use of a struct is so that when used as an argument to /seprintf/etc, the buffer lives
* on the stack with a lifetime which lasts until the end of the statement.
* This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then nee to be freed.
* This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then need to be freed.
*/
struct NetworkAddressDumper {
const char *GetAddressAsString(NetworkAddress *addr, bool with_family = true);

View File

@@ -309,7 +309,7 @@ char *strcasestr(const char *haystack, const char *needle);
/**
* The use of a struct is so that when used as an argument to seprintf/etc, the buffer lives
* on the stack with a lifetime which lasts until the end of the statement.
* This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then nee to be freed.
* This avoids using a static buffer which is thread-unsafe, or needing to call malloc, which would then need to be freed.
*/
struct StrErrorDumper {
const char *Get(int errornum);