Skip to content

Commit 46885ee

Browse files
committed
Reword explanation of 'size' types.
Do not reference machine 'pointers' in explanation of 'size' types.
1 parent 27380a3 commit 46885ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/doc/book/primitive-types.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ and `i64` is a signed, 64-bit integer.
9797

9898
## Variable sized types
9999

100-
Rust also provides types whose size depends on the size of a pointer of the
101-
underlying machine. These types have ‘size’ as the category, and come in signed
102-
and unsigned varieties. This makes for two types: `isize` and `usize`.
100+
Rust also provides types whose particular size depends on the underlying machine
101+
architecture. Their range is sufficient to express sizes of collections and they
102+
are used to address items in a vector, for example. These types have ‘size’ as
103+
the category, and come in signed and unsigned varieties. This makes for two types:
104+
`isize` and `usize`.
103105

104106
## Floating-point types
105107

0 commit comments

Comments
 (0)