Skip to content

Commit 7cc613d

Browse files
committed
Fix whitespace issues
1 parent baf6f8e commit 7cc613d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/expressions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ _in_ that memory location. If value is of a type that implements `Copy`, then
4545
the value will be copied. In other situations if the type of the value is
4646
[`Sized`](the-sized-trait.html) it may be possible to move the value. Only the
4747
following lvalues may be moved out of:
48+
4849
* [Variables](#variables.html) which are not currently borrowed.
4950
* [Temporary values](#temporary-lifetimes).
5051
* [Fields](#field-expressions) of an lvalue which can be moved out of and
@@ -65,6 +66,7 @@ contexts _mutable_ lvalue contexts, other lvalue contexts are called
6566
_immutable_.
6667

6768
The following expressions can create mutable lvalues:
69+
6870
* Mutable [variables](#variables.html), which are not currently borrowed.
6971
* [Mutable `static` items](items.html#mutable-statics).
7072
* [Temporary values](#temporary-lifetimes).
@@ -133,6 +135,7 @@ let b: &[i32] = &vec![1, 2, 3];
133135
```
134136

135137
Implicit borrows may be taken in the following expressions:
138+
136139
* Left operand in [method-call expressions](#method-call-expressions).
137140
* Left operand in [field expressions](#field-expressions).
138141
* Left operand in [call expressions](#call-expressions).
@@ -400,6 +403,7 @@ following order:
400403

401404
Note: that in steps 1-4 the receiver is used, not the type of `Self`, which may
402405
not be the same as `A`. For example
406+
403407
```rust
404408
// `Self` is `&A`, receiver is `&A`.
405409
impl<'a> Trait for &'a A {
@@ -866,6 +870,7 @@ functions and macros in the standard library can then use that assumption
866870
(although not to ensure safety). Unlike the arithmetic and logical operators
867871
above, these operators implicitly take shared borrows of their operands,
868872
evaluating them in lvalue context:
873+
869874
```rust
870875
a == b;
871876
// is equivalent to
@@ -884,6 +889,7 @@ This means that the operands don't have to be moved out of.
884889
| `<=` | Less than or equal to | `std::cmp::PartialOrd::le` |
885890

886891
Here are examples of the comparison operators being used.
892+
887893
```rust
888894
assert!(123 == 123);
889895
assert!(23 != -12);
@@ -1092,7 +1098,7 @@ the loop conditional expression evaluates to `true`, the loop body block
10921098
executes, then control returns to the loop conditional expression. If the loop
10931099
conditional expression evaluates to `false`, the `while` expression completes.
10941100

1095-
An example:
1101+
An example:
10961102

10971103
```rust
10981104
let mut i = 0;

0 commit comments

Comments
 (0)