Skip to content

Commit

Permalink
clarify that str data must still be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung authored and joshtriplett committed May 11, 2020
1 parent d41852b commit 892b928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ code.
* A value in a `char` which is a surrogate or above `char::MAX`.
* A `!` (all values are invalid for this type).
* An integer (`i*`/`u*`), floating point value (`f*`), or raw pointer obtained
from [uninitialized memory][undef].
from [uninitialized memory][undef], or uninitialized memory in a `str`.
* A reference or `Box<T>` that is dangling, unaligned, or points to an invalid value.
* Invalid metadata in a wide reference, `Box<T>`, or raw pointer:
* `dyn Trait` metadata is invalid if it is not a pointer to a vtable for
Expand Down

0 comments on commit 892b928

Please sign in to comment.