mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
Fix docs typo
This commit is contained in:
committed by
Cal Stephens
parent
a279d73671
commit
b48ffbc0bb
@@ -2031,7 +2031,7 @@ Prefer `== false` over `!` prefix negation.
|
||||
|
||||
## preferFinalClasses
|
||||
|
||||
Prefer defining `final` classes. To suppress this rule, add "Base" to the class name, add a doc comment with mentioning "base class" or "subclass", make the class `open`, or use a `// swiftformat:disable:next preferFinalClasses` directive.
|
||||
Prefer defining `final` classes. To suppress this rule, add "Base" to the class name, add a doc comment mentioning "base class" or "subclass", make the class `open`, or use a `// swiftformat:disable:next preferFinalClasses` directive.
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
@@ -13,7 +13,7 @@ public extension FormatRule {
|
||||
static let preferFinalClasses = FormatRule(
|
||||
help: """
|
||||
Prefer defining `final` classes. To suppress this rule, add "Base" to the class name, \
|
||||
add a doc comment with mentioning "base class" or "subclass", make the class `open`, \
|
||||
add a doc comment mentioning "base class" or "subclass", make the class `open`, \
|
||||
or use a `// swiftformat:disable:next preferFinalClasses` directive.
|
||||
""",
|
||||
disabledByDefault: true
|
||||
|
||||
Reference in New Issue
Block a user