@@ -189,7 +189,7 @@ grammar as double-quoted strings. Other tokens have exact rules given.
189
189
190
190
| | | | | |
191
191
| ----------| ----------| ----------| ----------| ---------|
192
- | abstract | alignof | as | be | box |
192
+ | abstract | alignof | as | become | box |
193
193
| break | const | continue | crate | do |
194
194
| else | enum | extern | false | final |
195
195
| fn | for | if | impl | in |
@@ -381,11 +381,13 @@ character (`\`), or a single _escape_. It is equivalent to a `u8` unsigned
381
381
382
382
##### Byte string literals
383
383
384
- A _ byte string literal_ is a sequence of ASCII characters and _ escapes_
385
- enclosed within two ` U+0022 ` (double-quote) characters, with the exception of
386
- ` U+0022 ` itself, which must be _ escaped_ by a preceding ` U+005C ` character
387
- (` \ ` ), or a _ raw byte string literal_ . It is equivalent to a ` &'static [u8] `
388
- borrowed array of unsigned 8-bit integers.
384
+ A non-raw _ byte string literal_ is a sequence of ASCII characters and _ escapes_ ,
385
+ preceded by the characters ` U+0062 ` (` b ` ) and ` U+0022 ` (double-quote), and
386
+ followed by the character ` U+0022 ` . If the character ` U+0022 ` is present within
387
+ the literal, it must be _ escaped_ by a preceding ` U+005C ` (` \ ` ) character.
388
+ Alternatively, a byte string literal can be a _ raw byte string literal_ , defined
389
+ below. A byte string literal is equivalent to a ` &'static [u8] ` borrowed array
390
+ of unsigned 8-bit integers.
389
391
390
392
Some additional _ escapes_ are available in either byte or non-raw byte string
391
393
literals. An escape starts with a ` U+005C ` (` \ ` ) and continues with one of the
@@ -1253,9 +1255,7 @@ fn my_err(s: &str) -> ! {
1253
1255
We call such functions "diverging" because they never return a value to the
1254
1256
caller. Every control path in a diverging function must end with a ` panic!() ` or
1255
1257
a call to another diverging function on every control path. The ` ! ` annotation
1256
- does * not* denote a type. Rather, the result type of a diverging function is a
1257
- special type called ⊥ ("bottom") that unifies with any type. Rust has no
1258
- syntax for ⊥.
1258
+ does * not* denote a type.
1259
1259
1260
1260
It might be necessary to declare a diverging function because as mentioned
1261
1261
previously, the typechecker checks that every control path in a function ends
@@ -2354,8 +2354,8 @@ Supported traits for `derive` are:
2354
2354
* ` FromPrimitive ` , to create an instance from a numeric primitive.
2355
2355
* ` Hash ` , to iterate over the bytes in a data type.
2356
2356
* ` Rand ` , to create a random instance of a data type.
2357
- * ` Show ` , to format a value using the ` {} ` formatter.
2358
- * ` Zero ` , to create a zero instance of a numeric data type .
2357
+ * ` Debug ` , to format a value using the ` {:? } ` formatter.
2358
+ * ` Copy ` , for "Plain Old Data" types which can be copied by simply moving bits .
2359
2359
2360
2360
### Compiler Features
2361
2361
0 commit comments