Skip to content

Commit 6c9a399

Browse files
RalfJungCentril
andauthored
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 6e17582 commit 6c9a399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/behavior-considered-undefined.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ code.
2626
* Dereferencing (using the `*` operator on) a dangling or unaligned raw pointer.
2727
* Breaking the [pointer aliasing rules]. `&mut T` and `&T` follow LLVM’s scoped
2828
[noalias] model, except if the `&T` contains an [`UnsafeCell<U>`].
29-
* Mutating immutable data. All data inside a `const` is immutable. Moreover, all
29+
* Mutating immutable data. All data inside a [`const`] item is immutable. Moreover, all
3030
data reached through a shared reference or data owned by an immutable binding
3131
is immutable, unless that data is contained within an [`UnsafeCell<U>`].
3232
* Invoking undefined behavior via compiler intrinsics.
@@ -73,6 +73,7 @@ large. In particular, allocations and therefore slices cannot be bigger than
7373
> vice versa, undefined behavior in Rust can cause adverse affects on code
7474
> executed by any FFI calls to other languages.
7575
76+
[`const`]: items/constant-items.html
7677
[noalias]: http://llvm.org/docs/LangRef.html#noalias
7778
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
7879
[undef]: http://llvm.org/docs/LangRef.html#undefined-values

0 commit comments

Comments
 (0)