Skip to content

Commit 9753ddb

Browse files
authored
Merge pull request #2064 from AudaciousAxiom/feat/isize-repr-guarantee
Guarantee the binary representation of `isize` explicitly
2 parents 3ba86bf + ea013b5 commit 9753ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/numeric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ platform's pointer type. It can represent every memory address in the process.
4444
> For more information, see the documentation for [type cast expressions], [`std::ptr`], and [provenance][std::ptr#provenance] in particular.
4545
4646
r[type.numeric.int.size.isize]
47-
The `isize` type is a signed integer type with the same number of bits as the
47+
The `isize` type is a signed two's complement integer type with the same number of bits as the
4848
platform's pointer type. The theoretical upper bound on object and array size
4949
is the maximum `isize` value. This ensures that `isize` can be used to calculate
5050
differences between pointers into an object or array and can address every byte

0 commit comments

Comments
 (0)