Skip to content

Commit 3949435

Browse files
maxtaran2010claude
andcommitted
fix: correct typos in comments and proto annotations
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 <noreply@anthropic.com>
1 parent 22d878a commit 3949435

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎internal/codegen/golang/opts/override.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type Override struct {
2828
// True if the GoType should override if the matching type is nullable
2929
Nullable bool `json:"nullable" yaml:"nullable"`
3030

31-
// True if the GoType should override if the matching type is unsiged.
31+
// True if the GoType should override if the matching type is unsigned.
3232
Unsigned bool `json:"unsigned" yaml:"unsigned"`
3333

3434
// Deprecated. Use the `nullable` property instead

‎internal/codegen/golang/struct.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func StructName(name string, options *opts.Options) string {
4343
}
4444
}
4545

46-
// If a name has a digit as its first char, prepand an underscore to make it a valid Go name.
46+
// If a name has a digit as its first char, prepend an underscore to make it a valid Go name.
4747
r, _ := utf8.DecodeRuneInString(out.String())
4848
if unicode.IsDigit(r) {
4949
return "_" + out.String()

‎internal/tools/sqlc-pg-gen/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func run(ctx context.Context) error {
370370
type schemaToLoad struct {
371371
// name is the name of a schema to load
372372
Name string
373-
// DestPath is the desination for the generate file
373+
// DestPath is the destination for the generate file
374374
DestPath string
375375
// The name of the function to generate for loading this schema
376376
GenFnName string

‎internal/tools/sqlc-pg-gen/proc.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (p *Proc) Args() []Arg {
6262
}
6363

6464
// Some manual changes until https://github.com/sqlc-dev/sqlc/pull/1748
65-
// can be completely implmented
65+
// can be completely implemented
6666
if p.Name == "mode" {
6767
return nil
6868
}

‎protos/plugin/codegen.proto‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ message File {
1313

1414
message Settings {
1515
// Rename message was field 5
16-
// Overides message was field 6
16+
// Overrides message was field 6
1717
// PythonCode message was field 8
1818
// KotlinCode message was field 9
1919
// GoCode message was field 10;

0 commit comments

Comments
 (0)