Skip to content

Commit 892b928

Browse files
RalfJungjoshtriplett
authored andcommitted
clarify that str data must still be initialized
1 parent d41852b commit 892b928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/behavior-considered-undefined.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ code.
4444
* A value in a `char` which is a surrogate or above `char::MAX`.
4545
* A `!` (all values are invalid for this type).
4646
* An integer (`i*`/`u*`), floating point value (`f*`), or raw pointer obtained
47-
from [uninitialized memory][undef].
47+
from [uninitialized memory][undef], or uninitialized memory in a `str`.
4848
* A reference or `Box<T>` that is dangling, unaligned, or points to an invalid value.
4949
* Invalid metadata in a wide reference, `Box<T>`, or raw pointer:
5050
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for

0 commit comments

Comments
 (0)