From d9df08b079375853c31fe55d0432abd8a0bb0025 Mon Sep 17 00:00:00 2001 From: queryfast <113781357+queryfast@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:13:44 +0800 Subject: [PATCH] chore: fix some minor issues in comments (#5051) Signed-off-by: queryfast --- core/stores/sqlx/bulkinserter.go | 4 ++-- core/trace/tracer_test.go | 2 +- mcp/server_test.go | 2 +- tools/goctl/api/parser/readme.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/stores/sqlx/bulkinserter.go b/core/stores/sqlx/bulkinserter.go index f251b76b9..c4eb732fe 100644 --- a/core/stores/sqlx/bulkinserter.go +++ b/core/stores/sqlx/bulkinserter.go @@ -25,8 +25,8 @@ type ( ResultHandler func(sql.Result, error) // A BulkInserter is used to batch insert records. - // Postgresql is not supported yet, because of the sql is formated with symbol `$`. - // Oracle is not supported yet, because of the sql is formated with symbol `:`. + // Postgresql is not supported yet, because of the sql is formatted with symbol `$`. + // Oracle is not supported yet, because of the sql is formatted with symbol `:`. BulkInserter struct { executor *executors.PeriodicalExecutor inserter *dbInserter diff --git a/core/trace/tracer_test.go b/core/trace/tracer_test.go index bb77d3847..8502c8840 100644 --- a/core/trace/tracer_test.go +++ b/core/trace/tracer_test.go @@ -82,7 +82,7 @@ func TestExtractValidTraceContext(t *testing.T) { }), }, { - name: "invalid tracestate perserves traceparent", + name: "invalid tracestate preserves traceparent", traceparent: "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00", tracestate: "invalid$@#=invalid", sc: trace.NewSpanContext(trace.SpanContextConfig{ diff --git a/mcp/server_test.go b/mcp/server_test.go index db718da26..ad683e5cc 100644 --- a/mcp/server_test.go +++ b/mcp/server_test.go @@ -1741,7 +1741,7 @@ func TestHandleSSEPing(t *testing.T) { mock.server.clientsLock.Unlock() assert.Equal(t, 1, clientCount, "One client should be added during the test") - assert.Equal(t, 0, finalClientCount, "Client should be cleaned up after context cancelation") + assert.Equal(t, 0, finalClientCount, "Client should be cleaned up after context cancellation") } // TestHandleSSEPing tests the automatic ping functionality in the SSE handler diff --git a/tools/goctl/api/parser/readme.md b/tools/goctl/api/parser/readme.md index 93eae4805..be3356a7b 100644 --- a/tools/goctl/api/parser/readme.md +++ b/tools/goctl/api/parser/readme.md @@ -639,7 +639,7 @@ line comments 以下为对应语法块解析后细带doc和comment的写法 ``` api // syntaxLit doc -syntax = "v1" // syntaxLit commnet +syntax = "v1" // syntaxLit comment info( // kvLit doc