@@ -398,7 +398,7 @@ func fixMissingCurlies(f *ast.File, b *ast.BlockStmt, parent ast.Node, tok *toke
398
398
//
399
399
// }
400
400
//
401
- // The resulting bool reports whether any fixing occured .
401
+ // The resulting bool reports whether any fixing occurred .
402
402
func fixEmptySwitch (body * ast.BlockStmt , tok * token.File , src []byte ) bool {
403
403
// We only care about empty switch statements.
404
404
if len (body .List ) > 0 || ! body .Rbrace .IsValid () {
@@ -475,7 +475,7 @@ func fixDanglingSelector(s *ast.SelectorExpr, tf *token.File, src []byte) []byte
475
475
//
476
476
// TODO(rfindley): should this constitute an ast 'fix'?
477
477
//
478
- // The resulting bool reports whether any fixing occured .
478
+ // The resulting bool reports whether any fixing occurred .
479
479
func fixPhantomSelector (sel * ast.SelectorExpr , tf * token.File , src []byte ) bool {
480
480
if ! isPhantomUnderscore (sel .Sel , tf , src ) {
481
481
return false
@@ -525,7 +525,7 @@ func isPhantomUnderscore(id *ast.Ident, tok *token.File, src []byte) bool {
525
525
// parser is looking for the conditional expression. However, "i := 0"
526
526
// are not valid expressions, so we get a BadExpr.
527
527
//
528
- // The resulting bool reports whether any fixing occured .
528
+ // The resulting bool reports whether any fixing occurred .
529
529
func fixInitStmt (bad * ast.BadExpr , parent ast.Node , tok * token.File , src []byte ) bool {
530
530
if ! bad .Pos ().IsValid () || ! bad .End ().IsValid () {
531
531
return false
0 commit comments