File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ They have the same layout as the [pointer types] for which the pointee is
49
49
> ** Note** : in the current Rust implementation, the layouts of ` isize ` and
50
50
> ` usize ` determine the following:
51
51
>
52
- > * the maximum size of Rust _ allocations_ is limited to ` isize::max_value() ` .
52
+ > * the maximum size of Rust _ allocations_ is limited to ` isize::MAX ` .
53
53
> The LLVM ` getelementptr ` instruction uses signed-integer field offsets. Rust
54
54
> calls ` getelementptr ` with the ` inbounds ` flag which assumes that field
55
55
> offsets do not overflow,
56
56
>
57
- > * the maximum number of elements in an array is ` usize::max_value() ` (`[ T; N:
57
+ > * the maximum number of elements in an array is ` usize::MAX ` (`[ T; N:
58
58
> usize] `. Only ZST arrays can probably be this large in practice, non-ZST
59
59
> arrays are bound by the maximum size of Rust values,
60
60
>
61
61
> * the maximum value in bytes by which a pointer can be offseted using
62
- > ` ptr.add ` or ` ptr.offset ` is ` isize::max_value() ` .
62
+ > ` ptr.add ` or ` ptr.offset ` is ` isize::MAX ` .
63
63
>
64
64
> These limits have not gone through the RFC process and are not guaranteed to
65
65
> hold.
You can’t perform that action at this time.
0 commit comments