Skip to content

Commit b91f3a8

Browse files
authored
fix some typos and style in code and documentation (#201)
Signed-off-by: ccoVeille <[email protected]>
1 parent aa37fd0 commit b91f3a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ GCI splits all import blocks into different sections, now support six section ty
3838
- localmodule: Put imports from local packages in a separate group
3939

4040
The priority is standard > default > custom > blank > dot > alias > localmodule, all sections sort alphabetically inside.
41-
By default, blank , dot and alias sections are not used and the corresponding lines end up in the other groups.
41+
By default, blank, dot, and alias sections are not used, and the corresponding lines end up in the other groups.
4242

4343
All import blocks use one TAB(`\t`) as Indent.
4444

pkg/config/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ type YamlConfig struct {
3939
SectionStrings []string `yaml:"sections"`
4040
SectionSeparatorStrings []string `yaml:"sectionseparators"`
4141

42-
// Since history issue, Golangci-lint needs Analyzer to run and GCI add an Anzlyzer layer to integrate.
43-
// The ModPath param is only from analyer.go, no need to set it in all other places.
42+
// Since history issue, Golangci-lint needs Analyzer to run and GCI add an Analyzer layer to integrate.
43+
// The ModPath param is only from analyzer.go, no need to set it in all other places.
4444
ModPath string `yaml:"-"`
4545
}
4646

@@ -98,8 +98,8 @@ func ParseConfig(in string) (*Config, error) {
9898
}
9999

100100
// configureSections now only do golang module path finding.
101-
// Since history issue, Golangci-lint needs Analyzer to run and GCI add an Anzlyzer layer to integrate.
102-
// The path param is from analyer.go, in all other places should pass empty string.
101+
// Since history issue, Golangci-lint needs Analyzer to run and GCI add an Analyzer layer to integrate.
102+
// The path param is from analyzer.go, in all other places should pass empty string.
103103
func configureSections(sections section.SectionList, path string) error {
104104
for _, sec := range sections {
105105
switch s := sec.(type) {

pkg/gci/testdata.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ import (
421421
`,
422422
},
423423
{
424-
"comment-whithout-whitespace",
424+
"comment-without-whitespace",
425425

426426
commonConfig,
427427

0 commit comments

Comments
 (0)