Skip to content

Commit 9d57724

Browse files
authored
Merge pull request #1785 from eric-seppanen/spelling2
Misc. spelling fixes
2 parents 66e00f7 + bbc603d commit 9d57724

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: src/expressions/block-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A *block expression*, or *block*, is a control flow expression and anonymous nam
2020
r[expr.block.sequential-evaluation]
2121
As a control flow expression, a block sequentially executes its component non-item declaration statements and then its final optional expression.
2222

23-
r[expr.block.namepsace]
23+
r[expr.block.namespace]
2424
As an anonymous namespace scope, item declarations are only in scope inside the block itself and variables declared by `let` statements are in scope from the next statement until the end of the block.
2525
See the [scopes] chapter for more details.
2626

Diff for: src/expressions/operator-expr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ An assignment expression consists of a [mutable] [assignee expression], the *ass
701701
r[expr.assign.behavior-basic]
702702
In its most basic form, an assignee expression is a [place expression], and we discuss this case first.
703703

704-
r[expr.assign.behavior-destructring]
704+
r[expr.assign.behavior-destructuring]
705705
The more general case of destructuring assignment is discussed below, but this case always decomposes into sequential assignments to place expressions, which may be considered the more fundamental case.
706706

707707
r[expr.assign.basic]
@@ -711,7 +711,7 @@ r[expr.assign.evaluation-order]
711711
Evaluating assignment expressions begins by evaluating its operands.
712712
The assigned value operand is evaluated first, followed by the assignee expression.
713713

714-
r[expr.assign.destructring-order]
714+
r[expr.assign.destructuring-order]
715715
For destructuring assignment, subexpressions of the assignee expression are evaluated left-to-right.
716716

717717
> [!NOTE]

Diff for: src/type-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ enum Enum16 {
553553
Variant1,
554554
}
555555

556-
// The size of the C representation is platform dependant
556+
// The size of the C representation is platform dependent
557557
assert_eq!(std::mem::size_of::<EnumC>(), 8);
558558
// One byte for the discriminant and one byte for the value in Enum8::Variant0
559559
assert_eq!(std::mem::size_of::<Enum8>(), 2);

0 commit comments

Comments
 (0)