From 81671de8bfa88e816129618a89bf8e79395ee073 Mon Sep 17 00:00:00 2001 From: rustfix <771054535@qq.com> Date: Mon, 15 Apr 2024 12:06:24 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: rustfix <771054535@qq.com> --- base/floats/src/munit.c | 4 ++-- cmd/gorse-in-one/mysql2sqlite | 2 +- master/rpc.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/floats/src/munit.c b/base/floats/src/munit.c index b16814e7c..12ccdd236 100644 --- a/base/floats/src/munit.c +++ b/base/floats/src/munit.c @@ -154,7 +154,7 @@ static MUNIT_THREAD_LOCAL jmp_buf munit_error_jmp_buf; #endif /* At certain warning levels, mingw will trigger warnings about - * suggesting the format attribute, which we've explicity *not* set + * suggesting the format attribute, which we've explicitly *not* set * because it will then choke on our attempts to use the MS-specific * I64 modifier for size_t (which we have to use since MSVC doesn't * support the C99 z modifier). */ @@ -1119,7 +1119,7 @@ munit_maybe_concat(size_t* len, char* prefix, char* suffix) { return res; } -/* Possbily free a string returned by munit_maybe_concat. */ +/* Possibly free a string returned by munit_maybe_concat. */ static void munit_maybe_free_concat(char* s, const char* prefix, const char* suffix) { if (prefix != s && suffix != s) diff --git a/cmd/gorse-in-one/mysql2sqlite b/cmd/gorse-in-one/mysql2sqlite index b81ea91aa..a61b41f80 100644 --- a/cmd/gorse-in-one/mysql2sqlite +++ b/cmd/gorse-in-one/mysql2sqlite @@ -270,7 +270,7 @@ END { if( caseIssue ){ printerr( \ "INFO Pure sqlite identifiers are case insensitive (even if quoted\n" \ - " or if ASCII) and doesnt cross-check TABLE and TEMPORARY TABLE\n" \ + " or if ASCII) and doesn't cross-check TABLE and TEMPORARY TABLE\n" \ " identifiers. Thus expect errors like \"table T has no column named F\".") } } diff --git a/master/rpc.go b/master/rpc.go index 11c743829..34ece0d72 100644 --- a/master/rpc.go +++ b/master/rpc.go @@ -221,7 +221,7 @@ func (m *Master) nodeUp(key string, value interface{}) { m.nodesInfo[key] = node } -// nodeDown handles node information timout events. +// nodeDown handles node information timeout events. func (m *Master) nodeDown(key string, value interface{}) { node := value.(*Node) log.Logger().Info("node down",