Skip to content

Commit bc5fef3

Browse files
committed
Fix typo "a UnknownSyntax" -> "an UnknownSyntax"
1 parent e43f685 commit bc5fef3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftSyntax/SyntaxNodes.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extension Syntax {
5353
public struct UnknownSyntax: SyntaxProtocol {
5454
public let _syntaxNode: Syntax
5555

56-
/// Convert the given `Syntax` node to a `UnknownSyntax` if possible. Return
56+
/// Convert the given `Syntax` node to an `UnknownSyntax` if possible. Return
5757
/// `nil` if the conversion is not possible.
5858
public init?(_ syntax: Syntax) {
5959
guard syntax.raw.kind == .unknown else { return nil }

Sources/SwiftSyntax/SyntaxRewriter.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ open class SyntaxRewriter {
4747
return Syntax(token)
4848
}
4949

50-
/// Visit a `UnknownSyntax`.
50+
/// Visit an `UnknownSyntax`.
5151
/// - Parameter node: the node that is being visited
5252
/// - Returns: the rewritten node
5353
open func visit(_ node: UnknownSyntax) -> Syntax {

0 commit comments

Comments
 (0)