Skip to content

Commit 7a95e5a

Browse files
authored
Fix misspelled words. (#952)
1 parent 4f3e410 commit 7a95e5a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.golangci.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ linters-settings:
7474
# tokens count to trigger issue, 150 by default
7575
threshold: 100
7676
errcheck:
77-
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
77+
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
7878
# default is false: such cases aren't reported by default.
7979
check-type-assertions: false
8080

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ linters-settings:
684684
# tokens count to trigger issue, 150 by default
685685
threshold: 100
686686
errcheck:
687-
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
687+
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
688688
# default is false: such cases aren't reported by default.
689689
check-type-assertions: false
690690

pkg/fsutils/fsutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func ShortestRelPath(path, wd string) (string, error) {
8181
path = evaledPath
8282

8383
// make path absolute and then relative to be able to fix this case:
84-
// we'are in /test dir, we want to normalize ../test, and have file file.go in this dir;
84+
// we are in /test dir, we want to normalize ../test, and have file file.go in this dir;
8585
// it must have normalized path file.go, not ../test/file.go,
8686
var absPath string
8787
if filepath.IsAbs(path) {

pkg/golinters/gofmt_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (p *hunkChangesParser) parse(h *diffpkg.Hunk) []Change {
196196
continue
197197
}
198198

199-
// no deletions, only addings
199+
// no deletions, only additions
200200
p.handleAddedOnlyLines(addedLines)
201201
}
202202

pkg/golinters/scopelint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (f *Node) Visit(node ast.Node) ast.Visitor {
8888
}
8989

9090
case *ast.RangeStmt:
91-
// Memory variables declarated in range statement
91+
// Memory variables declared in range statement
9292
switch k := typedNode.Key.(type) {
9393
case *ast.Ident:
9494
f.UnsafeObjects[k.Obj] = 0

0 commit comments

Comments
 (0)