rust-lang/rust-by-example

Change prefix to suffix

anorakk8 opened this issue · 2 comments

On this page https://doc.rust-lang.org/rust-by-example/primitives/literals.html of the Rust By Example section, it is mentioned,

Integers can, alternatively, be expressed using hexadecimal, octal or binary notation using these prefixes respectively: 0x, 0o or 0b.

I believe prefixes should be changed to suffixes since the integer notations are using x, o and b after the integer not before it.

@anorakk8 The doc doesn't seem to have an example but term prefix is correct. As an example let a = 0x12; (aka 18) would represent a hexadecimal number because the prefix 0x is present before the number.