Skip to content

Commit 6e4f6c8

Browse files
committed
Rollup merge of #29891 - steveklabnik:gh29470, r=alexcrichton
Fixes #29470
2 parents 370b793 + 9ca257a commit 6e4f6c8

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/doc/reference.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ a form of constant expression, so is evaluated (primarily) at compile time.
147147

148148
| | Example | `#` sets | Characters | Escapes |
149149
|----------------------------------------------|-----------------|------------|-------------|---------------------|
150-
| [Character](#character-literals) | `'H'` | `N/A` | All Unicode | `\'` & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) |
151-
| [String](#string-literals) | `"hello"` | `N/A` | All Unicode | `\"` & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) |
150+
| [Character](#character-literals) | `'H'` | `N/A` | All Unicode | [Quote](#quote-escapes) & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) |
151+
| [String](#string-literals) | `"hello"` | `N/A` | All Unicode | [Quote](#quote-escapes) & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) |
152152
| [Raw](#raw-string-literals) | `r#"hello"#` | `0...` | All Unicode | `N/A` |
153-
| [Byte](#byte-literals) | `b'H'` | `N/A` | All ASCII | `\'` & [Byte](#byte-escapes) |
154-
| [Byte string](#byte-string-literals) | `b"hello"` | `N/A` | All ASCII | `\"` & [Byte](#byte-escapes) |
153+
| [Byte](#byte-literals) | `b'H'` | `N/A` | All ASCII | [Quote](#quote-escapes) & [Byte](#byte-escapes) |
154+
| [Byte string](#byte-string-literals) | `b"hello"` | `N/A` | All ASCII | [Quote](#quote-escapes) & [Byte](#byte-escapes) |
155155
| [Raw byte string](#raw-byte-string-literals) | `br#"hello"#` | `0...` | All ASCII | `N/A` |
156156

157157
##### Byte escapes
@@ -163,12 +163,19 @@ a form of constant expression, so is evaluated (primarily) at compile time.
163163
| `\r` | Carriage return |
164164
| `\t` | Tab |
165165
| `\\` | Backslash |
166+
| `\0` | Null |
166167

167168
##### Unicode escapes
168169
| | Name |
169170
|---|------|
170171
| `\u{7FFF}` | 24-bit Unicode character code (up to 6 digits) |
171172

173+
##### Quote escapes
174+
| | Name |
175+
|---|------|
176+
| `\'` | Single quote |
177+
| `\"` | Double quote |
178+
172179
##### Numbers
173180

174181
| [Number literals](#number-literals)`*` | Example | Exponentiation | Suffixes |

0 commit comments

Comments
 (0)