Skip to content

Commit

Permalink
Fix links and sentence structure
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Jan 20, 2019
1 parent a457397 commit d9eab21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ scope of the initializer expression is extended.

#### Extending based on expressions

For a let statement with an initializer, an *extending expression* if it is
For a let statement with an initializer, an *extending expression* is an
expression which is one of the following:

* The initializer expression.
* The operand of a extending [borrow expression].
Expand Down Expand Up @@ -337,6 +338,7 @@ variable or field from being dropped automatically.
[initialized]: glossary.html#initialized
[interior mutability]: interior-mutability.html
[lazy boolean expression]: expressions/operator-expr.html#lazy-boolean-operators
[place context]: expressions.html#place-expressions-and-value-expressions
[statement]: statements.html
[temporary]: expressions.html#temporary-lifetimes
[variable]: variables.html
Expand Down
6 changes: 3 additions & 3 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ The following expressions can be mutable place expression contexts:

When using a value expression in most place expression contexts, a temporary
unnamed memory location is created initialized to that value and the expression
evaluates to that location instead, except if [promoted](#constant-promotion)
to a `static`. The [drop scope] of the temporary is usually the end of the
enclosing statement.
evaluates to that location instead, except if [promoted] to a `static`. The
[drop scope] of the temporary is usually the end of the enclosing statement.

### Implicit Borrows

Expand Down Expand Up @@ -249,6 +248,7 @@ They are never allowed before:
[interior mutability]: interior-mutability.html
[let statement]: statements.html#let-statements
[Mutable `static` items]: items/static-items.html#mutable-statics
[promoted]: destructors.html#constant-promotion
[slice]: types/slice.html
[statement]: statements.html
[static variables]: items/static-items.html
Expand Down

0 comments on commit d9eab21

Please sign in to comment.