diff options
| author | Ralf Jung <post@ralfj.de> | 2019-08-06 10:41:48 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-06 10:41:48 +0200 |
| commit | 1821414b7bb496545ef147644cf5691db433ab5d (patch) | |
| tree | cd623710dcddd922278b656137ddb2d97c16392b | |
| parent | 1b9eb4ac4cb5ecc5a16a1ed781a88af4c65bfc2f (diff) | |
| download | rust-1821414b7bb496545ef147644cf5691db433ab5d.tar.gz rust-1821414b7bb496545ef147644cf5691db433ab5d.zip | |
clarify
| -rw-r--r-- | src/libcore/mem/maybe_uninit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem/maybe_uninit.rs b/src/libcore/mem/maybe_uninit.rs index 43c4b491ac8..ff063759cba 100644 --- a/src/libcore/mem/maybe_uninit.rs +++ b/src/libcore/mem/maybe_uninit.rs @@ -51,7 +51,7 @@ use crate::mem::ManuallyDrop; /// /// On top of that, remember that most types have additional invariants beyond merely /// being considered initialized at the type level. For example, a `1`-initialized [`Vec<T>`] -/// is considered initialized (under the current implementation, this does not constitute +/// is considered initialized (under the current implementation; this does not constitute /// a stable guarantee) because the only requirement the compiler knows about it /// is that the data pointer must be non-null. Creating such a `Vec<T>` does not cause /// *immediate* undefined behavior, but will cause undefined behavior with most @@ -405,7 +405,7 @@ impl<T> MaybeUninit<T> { /// /// On top of that, remember that most types have additional invariants beyond merely /// being considered initialized at the type level. For example, a `1`-initialized [`Vec<T>`] - /// is considered initialized (under the current implementation, this does not constitute + /// is considered initialized (under the current implementation; this does not constitute /// a stable guarantee) because the only requirement the compiler knows about it /// is that the data pointer must be non-null. Creating such a `Vec<T>` does not cause /// *immediate* undefined behavior, but will cause undefined behavior with most |
