diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index 9452eb83da01..3760f5c47948 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -192,7 +192,7 @@ use crate::ptr; /// unsafe { addr_of_mut!((*ptr).name).write("Bob".to_string()); } /// /// // Initializing the `list` field -/// // 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. /// unsafe { addr_of_mut!((*ptr).list).write(vec![0, 1, 2]); } /// /// // All the fields are initialized, so we call `assume_init` to get an initialized Foo.