Skip to content

Commit 9dff225

Browse files
authored
Merge pull request #1404 from WowbaggersLiquidLunch/typo-doc-format
[Gardening] Fix a few typos and doc comment formatting
2 parents 6a2fa62 + 64de7e9 commit 9dff225

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CodeGeneration/Sources/SyntaxSupport/Child.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ public class Child {
147147

148148
/// If a classification is passed, it specifies the color identifiers in
149149
/// that subtree should inherit for syntax coloring. Must be a member of
150-
/// SyntaxClassification in SyntaxClassifier.h.gyb
151-
/// If force_classification is also set to true, all child nodes (not only
150+
/// ``SyntaxClassification``.
151+
/// If `forceClassification` is also set to true, all child nodes (not only
152152
/// identifiers) inherit the syntax classification.
153153
init(
154154
name: String,

CodeGeneration/Sources/SyntaxSupport/ExprNodes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ public let EXPR_NODES: [Node] = [
16021602
),
16031603

16041604
// 'as' ('?'|'!')
1605-
// "as" type casting ooperator without operands.
1605+
// "as" type casting operator without operands.
16061606
// NOTE: This appears only in SequenceExpr.
16071607
Node(
16081608
name: "UnresolvedAsExpr",
@@ -1622,7 +1622,7 @@ public let EXPR_NODES: [Node] = [
16221622
),
16231623

16241624
// 'is'
1625-
// "is" type casting ooperator without operands.
1625+
// "is" type casting operator without operands.
16261626
// NOTE: This appears only in SequenceExpr.
16271627
Node(
16281628
name: "UnresolvedIsExpr",

Sources/SwiftParser/Expressions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ extension Parser {
139139
// Parsed sequence elements except 'lastElement'.
140140
var elements = [RawExprSyntax]()
141141

142-
// The last element parsed. we don't eagarly append to 'elements' because we
142+
// The last element parsed. we don't eagerly append to 'elements' because we
143143
// don't want to populate the 'Array' unless the expression is actually
144144
// sequenced.
145145
var lastElement: RawExprSyntax

0 commit comments

Comments
 (0)