Skip to content

Commit 50d530e

Browse files
committed
Clarify maximum pointer offset
1 parent a9809bb commit 50d530e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/src/layout/scalars.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ They have the same layout as the [pointer types] for which the pointee is
5353
> usize]`. Only ZST arrays can probably be this large in practice, non-ZST
5454
> arrays are bound by the maximum size of Rust values,
5555
>
56-
> * the maximum value by which a pointer can be offseted using `ptr.add(count:
57-
> usize)` is `usize::max_value()`.
56+
> * the maximum value in bytes by which a pointer can be offseted using
57+
> `ptr.add` or `ptr.offset` is `isize::max_value()`.
5858
>
5959
> These limits have not gone through the RFC process and are not guaranteed to
6060
> hold.

0 commit comments

Comments
 (0)