From d1fc406a6832034f94d7ee4bb7a0473441d7756f Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 24 Apr 2024 13:26:15 +0800 Subject: [PATCH] fix: typos in comments Signed-off-by: guoguangwu --- squirrel.go | 2 +- stmtcacher.go | 2 +- stmtcacher_ctx.go | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/squirrel.go b/squirrel.go index 46d456e..cdda4f1 100644 --- a/squirrel.go +++ b/squirrel.go @@ -177,7 +177,7 @@ func DebugSqlizer(s Sqlizer) string { "[DebugSqlizer error: not enough placeholders in %#v for %d args]", sql, len(args)) } - // "append" any remaning sql that won't need interpolating + // "append" any remaining sql that won't need interpolating buf.WriteString(sql) return buf.String() } diff --git a/stmtcacher.go b/stmtcacher.go index 5bf267a..e747752 100644 --- a/stmtcacher.go +++ b/stmtcacher.go @@ -6,7 +6,7 @@ import ( "sync" ) -// Prepareer is the interface that wraps the Prepare method. +// Preparer is the interface that wraps the Prepare method. // // Prepare executes the given query as implemented by database/sql.Prepare. type Preparer interface { diff --git a/stmtcacher_ctx.go b/stmtcacher_ctx.go index 53603cf..5e3186e 100644 --- a/stmtcacher_ctx.go +++ b/stmtcacher_ctx.go @@ -1,3 +1,4 @@ +//go:build go1.8 // +build go1.8 package squirrel @@ -7,9 +8,9 @@ import ( "database/sql" ) -// PrepareerContext is the interface that wraps the Prepare and PrepareContext methods. +// PreparerContext is the interface that wraps the Preparer and PrepareContext methods. // -// Prepare executes the given query as implemented by database/sql.Prepare. +// Preparer executes the given query as implemented by database/sql.Prepare. // PrepareContext executes the given query as implemented by database/sql.PrepareContext. type PreparerContext interface { Preparer