Skip to content

Commit 2275cde

Browse files
RalfJungHavvy
andauthored
Apply suggestions from code review
Co-authored-by: Ryan Scheel <[email protected]>
1 parent 2826ff5 commit 2275cde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/behavior-considered-undefined.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ code.
5757
> **Note**: `rustc` achieves this with the unstable
5858
> `rustc_layout_scalar_valid_range_*` attributes.
5959
60-
Note that uninitialized memory is also implicitly invalid for any type that has
61-
a restricted set of valid values. In other words, the only cases in which
62-
reading uninitialized memory is permitted is inside `union`s, and between the
60+
**Note:** Uninitialized memory is also implicitly invalid for any type that has
61+
a restricted set of valid values. In other words, the only cases in which
62+
reading uninitialized memory is permitted is inside `union`s and between the
6363
fields of a compound type (in the "padding").
6464

6565
A reference/pointer is "dangling" if it is null or not all of the bytes it

0 commit comments

Comments
 (0)