Skip to content

Commit 16f73ed

Browse files
authored
Merge pull request rust-lang#2146 from DanielEScherzer/patch-2
undefined behavior: add missing plural in `undefined.misaligned.ptr`
2 parents cb8c1b1 + a02fdce commit 16f73ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/behavior-considered-undefined.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ A place is said to be "based on a misaligned pointer" if the last `*` projection
9898
during place computation was performed on a pointer that was not aligned for its
9999
type. (If there is no `*` projection in the place expression, then this is
100100
accessing the field of a local or `static` and rustc will guarantee proper alignment. If
101-
there are multiple `*` projection, then each of them incurs a load of the
101+
there are multiple `*` projections, then each of them incurs a load of the
102102
pointer-to-be-dereferenced itself from memory, and each of these loads is
103103
subject to the alignment constraint. Note that some `*` projections can be
104104
omitted in surface Rust syntax due to automatic dereferencing; we are

0 commit comments

Comments
 (0)