Skip to content

Commit 8732b5c

Browse files
Fix spelling errors in AlignAssignmentStatement code and docs
Co-authored-by: andyleejordan <2226434+andyleejordan@users.noreply.github.com>
1 parent fff7e18 commit 8732b5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Rules/AlignAssignmentStatement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
8787

8888
// As an optimisation, we first build a dictionary of all of the
8989
// assignment operators in the script, keyed by line number. We do
90-
// this by doing a single scan of the tokens. This makes it trvially
90+
// this by doing a single scan of the tokens. This makes it trivially
9191
// fast to find the `Equals` token for a given assignment.
9292

9393
// Note: In instances where there is a parse error, we do not have
@@ -569,7 +569,7 @@ List<Tuple<IScriptExtent, IScriptExtent>> assignmentSites
569569
}
570570

571571
// Filter out everything from assignmentSites that is not on
572-
// it's own line. Do this by grouping by the start line number
572+
// its own line. Do this by grouping by the start line number
573573
// of the lhsTokenExtent, and only keeping groups with a count
574574
// of 1.
575575
assignmentSites = assignmentSites

docs/Rules/AlignAssignmentStatement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ enum Enum {
155155
#### IncludeValuelessEnumMembers: bool (Default value is `$true`)
156156

157157
Include enum members in the alignment that don't have an initial value - that
158-
is to say they don't have an equals sign. Enum's don't need to be given a value
158+
is to say they don't have an equals sign. Enums don't need to be given a value
159159
when they're defined.
160160

161161
Consider the following:

0 commit comments

Comments
 (0)