Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/doc/book/primitive-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ and `i64` is a signed, 64-bit integer.

## Variable sized types

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the "for example" part misplaced or too much.

the category, and come in signed and unsigned varieties. This makes for two types:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This makes for two types". I don't really understand this part. Rewording needed?

`isize` and `usize`.

## Floating-point types

Expand Down