Skip to content

Commit 894afd4

Browse files
committed
Fix two more typos
1 parent 8789558 commit 894afd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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/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)