diff --git a/docs/devel/guidelines.md b/docs/devel/guidelines.md index f2a8321fa..85d451fdf 100644 --- a/docs/devel/guidelines.md +++ b/docs/devel/guidelines.md @@ -4,7 +4,7 @@ Be proffesional. When it's possible - follow general golang [code review guidelines](https://github.com/golang/go/wiki/CodeReviewComments). -## Contribugin guidelines +## Contributing guidelines Please check out [Effective Go](https://golang.org/doc/effective_go.html) as a base source of rules for this project. diff --git a/pkg/config/config.go b/pkg/config/config.go index ce54410aa..3eb295cda 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -199,7 +199,7 @@ func configForNode(mappings []virtlet_v1.VirtletConfigMapping, localConfig *virt } sort.Slice(sortedMappings, func(i, j int) bool { a, b := sortedMappings[i], sortedMappings[j] - // Iitems that go later in the list take precedence. + // Items that go later in the list take precedence. return a.Spec.Priority < b.Spec.Priority }) diff --git a/pkg/config/fields.go b/pkg/config/fields.go index e9ac52fd8..5e2bdc05b 100644 --- a/pkg/config/fields.go +++ b/pkg/config/fields.go @@ -267,7 +267,7 @@ func (fs *fieldSet) applyDefaults() { func (fs *fieldSet) addFlags(flagSet *flag.FlagSet) { for _, f := range fs.fields { - if f.flagName() != "" && !strings.Contains("+", f.flagName()) { + if f.flagName() != "" && !strings.Contains(f.flagName(), "+") { f.addFlag(flagSet) } }