Skip to content

Commit a9809bb

Browse files
committed
Replace values with allocations
1 parent 7722fdc commit a9809bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/src/layout/scalars.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ They have the same layout as the [pointer types] for which the pointee is
4444
> **Note**: in the current Rust implementation, the layouts of `isize` and
4545
> `usize` determine the following:
4646
>
47-
> * the maximum size of Rust _values_ is limited to `isize::max_value()`. The LLVM
48-
> `getelementptr` instruction uses signed-integer field offsets. Rust calls
49-
> `getelementptr` with the `inbounds` flag which assumes that field offsets do
50-
> not overflow,
47+
> * the maximum size of Rust _allocations_ is limited to `isize::max_value()`.
48+
> The LLVM `getelementptr` instruction uses signed-integer field offsets. Rust
49+
> calls `getelementptr` with the `inbounds` flag which assumes that field
50+
> offsets do not overflow,
5151
>
5252
> * the maximum number of elements in an array is `usize::max_value()` (`[T; N:
5353
> usize]`. Only ZST arrays can probably be this large in practice, non-ZST

0 commit comments

Comments
 (0)