Skip to content

Commit 0c4554f

Browse files
committed
Literal expressions: use a sublist when describing choice of radix
1 parent d1f3e7f commit 0c4554f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/expressions/literal-expr.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ let a: u64 = 123; // type u64
6363

6464
The value of the expression is determined from the string representation of the token as follows:
6565

66-
* An integer radix is chosen by inspecting the first two characters of the string: `0b` indicates radix 2, `0o` indicates radix 8, `0x` indicates radix 16; otherwise the radix is 10.
66+
* An integer radix is chosen by inspecting the first two characters of the string, as follows:
67+
68+
* `0b` indicates radix 2
69+
* `0o` indicates radix 8
70+
* `0x` indicates radix 16
71+
* otherwise the radix is 10.
6772

6873
* If the radix is not 10, the first two characters are removed from the string.
6974

0 commit comments

Comments
 (0)