Skip to content

Commit cb8981a

Browse files
authored
Merge pull request swiftlang#1407 from WowbaggersLiquidLunch/typo-doc-format-2
[Gardening] Fix some typos and doc comment formatting
2 parents 9fd3175 + 4a10cd3 commit cb8981a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftParser/Expressions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ extension Parser {
7878
/// We're parsing a matching pattern that is introduced via `let`, `var`, or `inout`
7979
///
8080
/// ```
81-
/// case let x.y <- 'x' must refer to the base of some member access, y must refer to some pattern-compatible identfier
81+
/// case let x.y <- 'x' must refer to the base of some member access, y must refer to some pattern-compatible identifier
8282
/// ```
8383
case bindingIntroducer
8484

@@ -2279,7 +2279,7 @@ extension Parser {
22792279
)
22802280
)
22812281
} else if allowStandaloneStmtRecovery && (self.atStartOfExpression() || self.atStartOfStatement() || self.atStartOfDeclaration()) {
2282-
// Synthesize a label for the stamenent or declaration that isn't coverd by a case right now.
2282+
// Synthesize a label for the statement or declaration that isn't covered by a case right now.
22832283
let statements = parseSwitchCaseBody()
22842284
if statements.isEmpty {
22852285
break
@@ -2470,7 +2470,7 @@ extension Parser {
24702470
/// Grammar
24712471
/// =======
24722472
///
2473-
/// case-item → pattern where-clause?
2473+
/// case-item → pattern where-clause?
24742474
mutating func parseGuardedCasePattern() -> (RawPatternSyntax, RawWhereClauseSyntax?) {
24752475
let pattern = self.parseMatchingPattern(context: .matching)
24762476

0 commit comments

Comments
 (0)