File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ temporary variable that holds the result of that expression when used in a
156
156
Apart from lifetime extension, the temporary scope of an expression is the
157
157
smallest scope that contains the expression and is one of the following:
158
158
159
- * The entire function body .
159
+ * The entire function.
160
160
* A statement.
161
161
* The body of an [ ` if ` ] , [ ` while ` ] or [ ` loop ` ] expression.
162
162
* The ` else ` block of an ` if ` expression.
@@ -168,8 +168,8 @@ smallest scope that contains the expression and is one of the following:
168
168
> ** Notes** :
169
169
>
170
170
> Temporaries that are created in the final expression of a function
171
- > body are dropped * after* any named variables bound in the function body, as
172
- > there is no smaller enclosing temporary scope.
171
+ > body are dropped * after* any named variables bound in the function body.
172
+ > Their drop scope is the entire function, as there is no smaller enclosing temporary scope.
173
173
>
174
174
> The [ scrutinee] of a ` match ` expression is not a temporary scope, so
175
175
> temporaries in the scrutinee can be dropped after the ` match ` expression. For
You can’t perform that action at this time.
0 commit comments