Skip to content

Commit 776a0f2

Browse files
committed
Auto merge of #31960 - aidanhs:aphs-tweak-aliasing-docs, r=Manishearth
See https://doc.rust-lang.org/book/unsafe.html#what-does-safe-mean for the book version of these points which already contain the T.
2 parents 953f6c9 + 2464013 commit 776a0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4065,7 +4065,7 @@ the guarantee that these issues are never caused by safe code.
40654065
* Breaking the [pointer aliasing
40664066
rules](http://llvm.org/docs/LangRef.html#pointer-aliasing-rules)
40674067
with raw pointers (a subset of the rules used by C)
4068-
* `&mut` and `&` follow LLVM’s scoped [noalias] model, except if the `&T`
4068+
* `&mut T` and `&T` follow LLVM’s scoped [noalias] model, except if the `&T`
40694069
contains an `UnsafeCell<U>`. Unsafe code must not violate these aliasing
40704070
guarantees.
40714071
* Mutating non-mutable data (that is, data reached through a shared reference or

0 commit comments

Comments
 (0)