Skip to content

Commit

Permalink
Merge pull request #1157 from mikong/fix-grammar-section-2-1
Browse files Browse the repository at this point in the history
Fix grammar in sentence about integer notation
  • Loading branch information
marioidival authored Feb 23, 2019
2 parents 6fa6d9e + 78168dc commit 13d2a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Integers `1`, floats `1.2`, characters `'a'`, strings `"abc"`, booleans `true`
and the unit type `()` can be expressed using literals.

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

Underscores can be inserted in numeric literals to improve readability, e.g.
`1_000` is the same as `1000`, and `0.000_001` is the same as `0.000001`.
Expand Down

0 comments on commit 13d2a2c

Please sign in to comment.