Skip to content

Commit edf493f

Browse files
committed
manual: fix exponents on number types.
1 parent 3a2e9e4 commit edf493f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,12 +2342,12 @@ The machine types are the following:
23422342

23432343

23442344
* The unsigned word types `u8`, `u16`, `u32` and `u64`, with values drawn from
2345-
the integer intervals $[0, 2^8 - 1]$, $[0, 2^16 - 1]$, $[0, 2^32 - 1]$ and
2346-
$[0, 2^64 - 1]$ respectively.
2345+
the integer intervals $[0, 2^8 - 1]$, $[0, 2^{16} - 1]$, $[0, 2^{32} - 1]$ and
2346+
$[0, 2^{64} - 1]$ respectively.
23472347

23482348
* The signed two's complement word types `i8`, `i16`, `i32` and `i64`, with
23492349
values drawn from the integer intervals $[-(2^7), 2^7 - 1]$,
2350-
$[-(2^15), 2^15 - 1]$, $[-(2^31), 2^31 - 1]$, $[-(2^63), 2^63 - 1]$
2350+
$[-(2^{15}), 2^{15} - 1]$, $[-(2^{31}), 2^{31} - 1]$, $[-(2^{63}), 2^{63} - 1]$
23512351
respectively.
23522352

23532353
* The IEEE 754-2008 `binary32` and `binary64` floating-point types: `f32` and

0 commit comments

Comments
 (0)