Skip to content

Commit

Permalink
Merge pull request #583 from fkmy/fix-typo
Browse files Browse the repository at this point in the history
Fix some minor typos
  • Loading branch information
k1LoW authored May 10, 2024
2 parents 1c70bc4 + c97399f commit 648faf5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ import (
"github.com/spf13/cobra"
)

// adjust is a flag on whethre to adjust the notation width of the table
// adjust is a flag on whether to adjust the notation width of the table
var adjust bool

// force is a flag on whether to force genarate
// force is a flag on whether to force generate
var force bool

// sort is a flag on whether to sort tables, columns, and more
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ func detectCardinality(s *schema.Schema) error {

// parent
if r.ParentCardinality == schema.UnknownCardinality {
// whether the child colums are nullable or not.
// whether the child columns are nullable or not.
nullable := true
for _, c := range r.Columns {
if !c.Nullable {
Expand Down
2 changes: 1 addition & 1 deletion schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (s *Schema) FindTableByName(name string) (*Table, error) {
return nil, errors.Errorf("not found table '%s'", name)
}

// FindRelation find relation by columns and parent colums
// FindRelation find relation by columns and parent columns
func (s *Schema) FindRelation(cs, pcs []*Column) (*Relation, error) {
L:
for _, r := range s.Relations {
Expand Down

0 comments on commit 648faf5

Please sign in to comment.