Skip to content

Commit 1821414

Browse files
committed
clarify
1 parent 1b9eb4a commit 1821414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libcore/mem/maybe_uninit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use crate::mem::ManuallyDrop;
5151
///
5252
/// On top of that, remember that most types have additional invariants beyond merely
5353
/// being considered initialized at the type level. For example, a `1`-initialized [`Vec<T>`]
54-
/// is considered initialized (under the current implementation, this does not constitute
54+
/// is considered initialized (under the current implementation; this does not constitute
5555
/// a stable guarantee) because the only requirement the compiler knows about it
5656
/// is that the data pointer must be non-null. Creating such a `Vec<T>` does not cause
5757
/// *immediate* undefined behavior, but will cause undefined behavior with most
@@ -405,7 +405,7 @@ impl<T> MaybeUninit<T> {
405405
///
406406
/// On top of that, remember that most types have additional invariants beyond merely
407407
/// being considered initialized at the type level. For example, a `1`-initialized [`Vec<T>`]
408-
/// is considered initialized (under the current implementation, this does not constitute
408+
/// is considered initialized (under the current implementation; this does not constitute
409409
/// a stable guarantee) because the only requirement the compiler knows about it
410410
/// is that the data pointer must be non-null. Creating such a `Vec<T>` does not cause
411411
/// *immediate* undefined behavior, but will cause undefined behavior with most

0 commit comments

Comments
 (0)