Skip to content

Commit dcb19bf

Browse files
authored
Update values.rst
1 parent 3b3e36e commit dcb19bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coding-guidelines/values.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Values
1717
:tags: undefined-behavior, unsafe, defect
1818

1919
Do not create a typed value from uninitialized memory.
20-
Types that explicitly permit an uninitialized state (e.g., ``MaybeUninit<T>`` or a ``union`` that includes ``()``) may hold uninitialized bytes as values,
20+
Types that explicitly permit an uninitialized state (e.g., ``MaybeUninit<T>`` or a ``union`` that includes ``()``)
21+
may hold uninitialized bytes as values,
2122
but reading any specific typed field still requires initialized and valid bytes.
2223

2324
**Exception:** You can access a field of a ``union`` when all of the following conditions are met:

0 commit comments

Comments
 (0)