Hey there,
I noticed that Rust has isize
and usize
data types.
The book describes this as:
Additionally, the
isize
andusize
types depend on the kind of computer your program is running on: 64 bits if you’re on a 64-bit architecture and 32 bits if you’re on a 32-bit architecture.
While the documentations says:
on a 32 bit target, this is 4 bytes and on a 64 bit target, this is 8 bytes.
target
very probably means the target architecture that the Rust program is compiled for. Not which architecture the computer is running on. x64 OS's are capable of running x86 code, which means the text could be interpreted in a way that would suggest isize
and usize
are dynamic depending on which computer one runs the program. I don't think that's the case when I read the docs
Maybe clarify the text?