Skip to content

Commit 22882fb

Browse files
authored
Merge pull request #1322 from steffahn/assigment
Fix typo “assigment” (…and more)
2 parents c4202a8 + 894afd4 commit 22882fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/expressions/if-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ The expression cannot be a [lazy boolean operator expression][_LazyBooleanOperat
129129
Use of a lazy boolean operator is ambiguous with a planned feature change of the language (the implementation of if-let chains - see [eRFC 2947][_eRFCIfLetChain_]).
130130
When lazy boolean operator expression is desired, this can be achieved by using parenthesis as below:
131131

132-
<!-- ignore: psuedo code -->
132+
<!-- ignore: pseudo code -->
133133
```rust,ignore
134134
// Before...
135135
if let PAT = EXPR && EXPR { .. }

src/expressions/operator-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ It will then set the value of the assigned operand's place to the value of perfo
600600

601601
> **Note**: This is different than other expressions in that the right operand is evaluated before the left one.
602602
603-
Otherwise, this expression is syntactic sugar for calling the function of the overloading compound assigment trait of the operator (see the table earlier in this chapter).
603+
Otherwise, this expression is syntactic sugar for calling the function of the overloading compound assignment trait of the operator (see the table earlier in this chapter).
604604
A mutable borrow of the assigned operand is automatically taken.
605605

606606
For example, the following expression statements in `example` are equivalent:

src/patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ The bounds can be literals or paths that point to constant values.
429429

430430
A half open range with only an upper bound is written as `..=` followed by its upper bound.
431431
These range patterns will match on any value less than or equal to the upper bound.
432-
For example, `..=10` will match 10, 1, 0, and for signed interger types, all negative values.
432+
For example, `..=10` will match 10, 1, 0, and for signed integer types, all negative values.
433433

434434
Half-open range patterns cannot be used as the top-level pattern for subpatterns in [slice patterns](#slice-patterns).
435435

0 commit comments

Comments
 (0)