Skip to content

Commit c268823

Browse files
committed
Highlighting in tokens.md
Note that raw byte strings are a little buggy
1 parent adf050d commit c268823

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tokens.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ many `U+0023` (`#`) characters as were used to start the raw string literal) or
133133

134134
Examples for string literals:
135135

136-
```
136+
```rust
137137
"foo"; r"foo"; // foo
138138
"\"foo\""; r#""foo""#; // "foo"
139139

@@ -197,7 +197,7 @@ many `U+0023` (`#`) characters as were used to start the raw string literal) or
197197

198198
Examples for byte string literals:
199199

200-
```
200+
```rust
201201
b"foo"; br"foo"; // foo
202202
b"\"foo\""; br#""foo""#; // "foo"
203203

@@ -245,7 +245,7 @@ The type of an _unsuffixed_ integer literal is determined by type inference:
245245

246246
Examples of integer literals of various forms:
247247

248-
```
248+
```rust
249249
123i32; // type i32
250250
123u32; // type u32
251251
123_u32; // type u32
@@ -289,7 +289,7 @@ type inference:
289289

290290
Examples of floating-point literals of various forms:
291291

292-
```
292+
```rust
293293
123.0f64; // type f64
294294
0.1f64; // type f64
295295
0.1f32; // type f32

0 commit comments

Comments
 (0)