File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ a form of constant expression, so is evaluated (primarily) at compile time.
147
147
148
148
| | Example | `#` sets | Characters | Escapes |
149
149
|----------------------------------------------|-----------------|------------|-------------|---------------------|
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) |
152
152
| [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) |
155
155
| [Raw byte string](#raw-byte-string-literals) | `br#"hello"#` | `0...` | All ASCII | `N/A` |
156
156
157
157
##### Byte escapes
@@ -163,12 +163,19 @@ a form of constant expression, so is evaluated (primarily) at compile time.
163
163
| `\r` | Carriage return |
164
164
| `\t` | Tab |
165
165
| `\\` | Backslash |
166
+ | `\0` | Null |
166
167
167
168
##### Unicode escapes
168
169
| | Name |
169
170
|---|------|
170
171
| `\u{7FFF}` | 24-bit Unicode character code (up to 6 digits) |
171
172
173
+ ##### Quote escapes
174
+ | | Name |
175
+ |---|------|
176
+ | `\'` | Single quote |
177
+ | `\"` | Double quote |
178
+
172
179
##### Numbers
173
180
174
181
| [Number literals](#number-literals)`*` | Example | Exponentiation | Suffixes |
You can’t perform that action at this time.
0 commit comments