Skip to content

Commit d0434b2

Browse files
Merge pull request #418 from Havvy/extra-the
the originally -> originally
2 parents a1dcdbf + cc18f2b commit d0434b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/expressions.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ unnamed memory location is created initialized to that value and the expression
143143
evaluates to that location instead, except if promoted to `'static`. Promotion
144144
of a value expression to a `'static` slot occurs when the expression could be
145145
written in a constant, borrowed, and dereferencing that borrow where the
146-
expression was the originally written, without changing the runtime behavior.
147-
That is, the promoted expression can be evaluated at compile-time and the
148-
resulting value does not contain [interior mutability] or [destructors] (these
149-
properties are determined based on the value where possible, e.g. `&None`
150-
always has the type `&'static Option<_>`, as it contains nothing disallowed).
151-
Otherwise, the lifetime of temporary values is typically
146+
expression was originally written, without changing the runtime behavior. That
147+
is, the promoted expression can be evaluated at compile-time and the resulting
148+
value does not contain [interior mutability] or [destructors] (these properties
149+
are determined based on the value where possible, e.g. `&None` always has the
150+
type `&'static Option<_>`, as it contains nothing disallowed). Otherwise, the
151+
lifetime of temporary values is typically
152152

153153
- the innermost enclosing statement; the tail expression of a block is
154154
considered part of the statement that encloses the block, or

0 commit comments

Comments
 (0)