mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-11-28 18:11:07 +02:00
Merge pull request #73 from janosh/fix-casing-types-bit-width
Fix casing in type bit widths
This commit is contained in:
commit
d052db8874
@ -7,12 +7,12 @@
|
|||||||
| Floating point numbers | `f32`, `f64` | `3.14`, `-10.0e20`, `2f32` |
|
| Floating point numbers | `f32`, `f64` | `3.14`, `-10.0e20`, `2f32` |
|
||||||
| Strings | `&str` | `"foo"`, `r#"\\"#` |
|
| Strings | `&str` | `"foo"`, `r#"\\"#` |
|
||||||
| Unicode scalar values | `char` | `'a'`, `'α'`, `'∞'` |
|
| Unicode scalar values | `char` | `'a'`, `'α'`, `'∞'` |
|
||||||
| Byte strings | `&[u8]` | `b"abc"`, `br#" " "#` |
|
| Byte strings | `&[u8]` | `b"abc"`, `br#" " "#` |
|
||||||
| Booleans | `bool` | `true`, `false` |
|
| Booleans | `bool` | `true`, `false` |
|
||||||
|
|
||||||
The types have widths as follows:
|
The types have widths as follows:
|
||||||
|
|
||||||
* `iN`, `uN`, and `fN` are _n_ bits wide,
|
* `iN`, `uN`, and `fN` are _N_ bits wide,
|
||||||
* `isize` and `usize` are the width of a pointer,
|
* `isize` and `usize` are the width of a pointer,
|
||||||
* `char` is 32 bit wide,
|
* `char` is 32 bit wide,
|
||||||
* `bool` is 8 bit wide.
|
* `bool` is 8 bit wide.
|
||||||
|
Loading…
Reference in New Issue
Block a user