Skip to content

Commit c91e101

Browse files
committed
Fix documentation
1 parent a43f0e5 commit c91e101

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/SwiftFormat/API/SwiftLinter.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public final class SwiftLinter {
4545
/// This form of the `lint` function automatically folds expressions using the default operator
4646
/// set defined in Swift. If you need more control over this—for example, to provide the correct
4747
/// precedence relationships for custom operators—you must parse and fold the syntax tree
48-
/// manually and then call ``lint(syntax:assumingFileURL:)``.
48+
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
4949
///
5050
/// - Parameters:
5151
/// - url: The URL of the file containing the code to format.
@@ -76,7 +76,7 @@ public final class SwiftLinter {
7676
/// This form of the `lint` function automatically folds expressions using the default operator
7777
/// set defined in Swift. If you need more control over this—for example, to provide the correct
7878
/// precedence relationships for custom operators—you must parse and fold the syntax tree
79-
/// manually and then call ``lint(syntax:assumingFileURL:)``.
79+
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
8080
///
8181
/// - Parameters:
8282
/// - source: The Swift source code to be linted.
@@ -124,6 +124,7 @@ public final class SwiftLinter {
124124
///
125125
/// - Parameters:
126126
/// - syntax: The Swift syntax tree to be converted to be linted.
127+
/// - source: The Swift source code to be linted.
127128
/// - operatorTable: The table that defines the operators and their precedence relationships.
128129
/// This must be the same operator table that was used to fold the expressions in the `syntax`
129130
/// argument.

0 commit comments

Comments
 (0)