Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed May 23, 2021
1 parent 2f0b511 commit 5e050a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newParsedFile(file *ast.File, fset *token.FileSet) (*parsedFile, error) {
// Check consistency to avoid checking slice indexes in each function
lastComment := pf.file.Comments[len(pf.file.Comments)-1]
if p := pf.fset.Position(lastComment.End()); len(pf.lines) < p.Line {
return nil, fmt.Errorf("inconsistence between file and AST: %s", p.Filename)
return nil, fmt.Errorf("inconsistency between file and AST: %s", p.Filename)
}

return &pf, nil
Expand Down

0 comments on commit 5e050a6

Please sign in to comment.