Skip to content

Commit 255187e

Browse files
committed
link to wrapping_offset docs
1 parent a403e9f commit 255187e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/src/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Abstract Rust Machine is intended to operate according to the definition here.
6060
The *provenance* of a pointer is used, in the Rust Abstract Machine, to distinguish pointers that point to the same memory address (i.e., pointers that, when cast to `usize`, will compare equal).
6161

6262
For example, we have to distinguish pointers to the same location if they originated from different allocations.
63-
After all, cross-allocation pointer arithmetic does not lead to usable pointers, so the Rust Abstract Machine *somehow* has to remember the original allocation to which a pointer pointed.
63+
Cross-allocation pointer arithmetic [does not lead to usable pointers](https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset), so the Rust Abstract Machine *somehow* has to remember the original allocation to which a pointer pointed.
6464
It uses provenance to achieve this:
6565

6666
```rust

0 commit comments

Comments
 (0)