We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa83e2a commit 21c2343Copy full SHA for 21c2343
library/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