Add example verifying that `trailing_semicolon` works with trailing comments (#4808)
This commit is contained in:
parent
1bf2f25e40
commit
bd77cbcf6e
|
@ -16,7 +16,8 @@ struct TrailingSemicolonRule: SwiftSyntaxCorrectableRule, ConfigurationProviderR
|
|||
],
|
||||
triggeringExamples: [
|
||||
Example("let a = 0↓;\n"),
|
||||
Example("let a = 0↓;\nlet b = 1\n")
|
||||
Example("let a = 0↓;\nlet b = 1\n"),
|
||||
Example("let a = 0↓; // a comment\n")
|
||||
],
|
||||
corrections: [
|
||||
Example("let a = 0↓;\n"): Example("let a = 0\n"),
|
||||
|
|
Loading…
Reference in New Issue