Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some minor typos #583

Merged
merged 3 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading