Skip to content

Commit 3c7735a

Browse files
RalfJungteor2345
andauthored
fix typo
Co-authored-by: teor <[email protected]>
1 parent 982b51d commit 3c7735a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-maybe-dangling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Miri is adjusted as follows:
205205
fn foo(x: &i32) -> i32 {
206206
let val = *x;
207207
bar();
208-
return val; // optimize to `*v`, avoid saving `val` across the call.
208+
return val; // optimize to `*x`, avoid saving `val` across the call.
209209
}
210210
```
211211
Under the adjusted rules, `x` could stop being live in the middle of the execution of `foo`, so it might not be live any more when the `return` is executed.

0 commit comments

Comments
 (0)