Skip to content

Commit 41a02cf

Browse files
committed
fix example
1 parent 290ceaa commit 41a02cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-union-initialization-and-drop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ When a union implementing `Drop` goes out of scope, its destructor gets called i
173173
}
174174
{
175175
let u = U { f1: ManuallyDrop::new(Vec::new()) };
176-
foo(u.f2);
176+
foo(u);
177177
// drop does NOT get called
178178
}
179179
```

0 commit comments

Comments
 (0)