Repository navigation
Remove confusing reference to “Immediate Undefined Behavior” from docs - #162458
umanwizard wants to merge 1 commit into
Conversation
The docs in core::ptr capitalize "Immediate Undefined Behavior" as if that were a technical term of art; it’s not. The code described just causes undefined behavior, not some special kind that is any more "Immediate" than usual.
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
I think the "immediate" is important, as people sometimes tend to think it's only UB when they use the reference. I think if we won't capitalize it it will be all good. |
|
r=me with a modification to drop the capitalization; there are several other cases of that formulation in the standard library. |
|
For example, we also use it in the reference: https://doc.rust-lang.org/reference/behavior-considered-undefined.html#r-undefined.validity.def |
The docs in core::ptr capitalize "Immediate Undefined Behavior" as if that were a technical term of art; it’s not. The code described just causes undefined behavior, not some special kind that is any more "Immediate" than usual.