Skip to content

Commit 8f5f5bf

Browse files
RalfJungPolyMeilex
andauthored
fix syntax error
Co-authored-by: Bartłomiej Maryńczak <marynczak.bartlomiej@gmail.com>
1 parent 4d23931 commit 8f5f5bf

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
@@ -22,7 +22,7 @@ For example, the following code is UB at the time of writing this RFC:
2222
```rust
2323
fn id<T>(x: T) -> T { x }
2424

25-
fn unsound(x: Box<i32>)
25+
fn unsound(x: Box<i32>) {
2626
let mut x = ManuallyDrop::new(x);
2727
unsafe { x.drop() };
2828
id(x); // or `let y = x;` or `mem::forget(x);`.

0 commit comments

Comments
 (0)