Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Aug 19, 2023
1 parent 2e37a12 commit e366a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func getText(comment *ast.CommentGroup, exclude []*regexp.Regexp) (s string) {
return s[:len(s)-1] // trim last "\n"
}

// readFile reads file and returns it's lines as strings.
// readFile reads file and returns its lines as strings.
func readFile(file *ast.File, fset *token.FileSet) ([]string, error) {
fname := fset.File(file.Package)
f, err := os.ReadFile(fname.Name())
Expand Down
2 changes: 1 addition & 1 deletion godot.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Fix(path string, file *ast.File, fset *token.FileSet, settings Settings) ([
return fixed, nil
}

// Replace rewrites original file with it's fixed version.
// Replace rewrites original file with its fixed version.
func Replace(path string, file *ast.File, fset *token.FileSet, settings Settings) error {
info, err := os.Stat(path)
if err != nil {
Expand Down

0 comments on commit e366a23

Please sign in to comment.