From 394943547132f5339bcc426c14cc961e518aeda2 Mon Sep 17 00:00:00 2001 From: maxtaran2010 Date: Wed, 8 Jul 2026 12:05:48 +0300 Subject: [PATCH] fix: correct typos in comments and proto annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix spelling mistakes in Go code comments and a proto comment: - prepand -> prepend (internal/codegen/golang/struct.go) - unsiged -> unsigned (internal/codegen/golang/opts/override.go) - desination -> destination (internal/tools/sqlc-pg-gen/main.go) - implmented -> implemented (internal/tools/sqlc-pg-gen/proc.go) - Overides -> Overrides (protos/plugin/codegen.proto) All changes are in comments only — no logic or behavior is affected. Co-Authored-By: Claude Sonnet 4.6 --- internal/codegen/golang/opts/override.go | 2 +- internal/codegen/golang/struct.go | 2 +- internal/tools/sqlc-pg-gen/main.go | 2 +- internal/tools/sqlc-pg-gen/proc.go | 2 +- protos/plugin/codegen.proto | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/codegen/golang/opts/override.go b/internal/codegen/golang/opts/override.go index 6916c0c7f3..cf2ac1de89 100644 --- a/internal/codegen/golang/opts/override.go +++ b/internal/codegen/golang/opts/override.go @@ -28,7 +28,7 @@ type Override struct { // True if the GoType should override if the matching type is nullable Nullable bool `json:"nullable" yaml:"nullable"` - // True if the GoType should override if the matching type is unsiged. + // True if the GoType should override if the matching type is unsigned. Unsigned bool `json:"unsigned" yaml:"unsigned"` // Deprecated. Use the `nullable` property instead diff --git a/internal/codegen/golang/struct.go b/internal/codegen/golang/struct.go index 9845c0c4fb..a25c4e0369 100644 --- a/internal/codegen/golang/struct.go +++ b/internal/codegen/golang/struct.go @@ -43,7 +43,7 @@ func StructName(name string, options *opts.Options) string { } } - // If a name has a digit as its first char, prepand an underscore to make it a valid Go name. + // If a name has a digit as its first char, prepend an underscore to make it a valid Go name. r, _ := utf8.DecodeRuneInString(out.String()) if unicode.IsDigit(r) { return "_" + out.String() diff --git a/internal/tools/sqlc-pg-gen/main.go b/internal/tools/sqlc-pg-gen/main.go index b7e7296ea1..50041c4e95 100644 --- a/internal/tools/sqlc-pg-gen/main.go +++ b/internal/tools/sqlc-pg-gen/main.go @@ -370,7 +370,7 @@ func run(ctx context.Context) error { type schemaToLoad struct { // name is the name of a schema to load Name string - // DestPath is the desination for the generate file + // DestPath is the destination for the generate file DestPath string // The name of the function to generate for loading this schema GenFnName string diff --git a/internal/tools/sqlc-pg-gen/proc.go b/internal/tools/sqlc-pg-gen/proc.go index e4e1c2f89d..e380b402d4 100644 --- a/internal/tools/sqlc-pg-gen/proc.go +++ b/internal/tools/sqlc-pg-gen/proc.go @@ -62,7 +62,7 @@ func (p *Proc) Args() []Arg { } // Some manual changes until https://github.com/sqlc-dev/sqlc/pull/1748 - // can be completely implmented + // can be completely implemented if p.Name == "mode" { return nil } diff --git a/protos/plugin/codegen.proto b/protos/plugin/codegen.proto index e6faf19bad..bdb5bcf851 100644 --- a/protos/plugin/codegen.proto +++ b/protos/plugin/codegen.proto @@ -13,7 +13,7 @@ message File { message Settings { // Rename message was field 5 - // Overides message was field 6 + // Overrides message was field 6 // PythonCode message was field 8 // KotlinCode message was field 9 // GoCode message was field 10;