Fix misspelled words. (#952)

This commit is contained in:
Trevor Pounds 2020-02-02 16:29:57 -05:00 committed by GitHub
parent 4f3e410581
commit 7a95e5ad30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ linters-settings:
# tokens count to trigger issue, 150 by default
threshold: 100
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false

View File

@ -684,7 +684,7 @@ linters-settings:
# tokens count to trigger issue, 150 by default
threshold: 100
errcheck:
# report about not checking of errors in type assetions: `a := b.(MyStruct)`;
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false

View File

@ -81,7 +81,7 @@ func ShortestRelPath(path, wd string) (string, error) {
path = evaledPath
// make path absolute and then relative to be able to fix this case:
// we'are in /test dir, we want to normalize ../test, and have file file.go in this dir;
// we are in /test dir, we want to normalize ../test, and have file file.go in this dir;
// it must have normalized path file.go, not ../test/file.go,
var absPath string
if filepath.IsAbs(path) {

View File

@ -196,7 +196,7 @@ func (p *hunkChangesParser) parse(h *diffpkg.Hunk) []Change {
continue
}
// no deletions, only addings
// no deletions, only additions
p.handleAddedOnlyLines(addedLines)
}

View File

@ -88,7 +88,7 @@ func (f *Node) Visit(node ast.Node) ast.Visitor {
}
case *ast.RangeStmt:
// Memory variables declarated in range statement
// Memory variables declared in range statement
switch k := typedNode.Key.(type) {
case *ast.Ident:
f.UnsafeObjects[k.Obj] = 0