We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611fd76 commit a8d1760Copy full SHA for a8d1760
core/src/mem/maybe_uninit.rs
@@ -192,7 +192,7 @@ use crate::ptr;
192
/// unsafe { addr_of_mut!((*ptr).name).write("Bob".to_string()); }
193
///
194
/// // Initializing the `list` field
195
-/// // If there was a panic here, then the `String` in the `name` field would be leaked.
+/// // If there is a panic here, then the `String` in the `name` field leaks.
196
/// unsafe { addr_of_mut!((*ptr).list).write(vec![0, 1, 2]); }
197
198
/// // All the fields are initialized, so we call `assume_init` to get an initialized Foo.
0 commit comments