diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-10 14:59:39 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-10 14:59:39 +0530 |
| commit | fa8c6d94d039e720f54196f3dee5b02c9378a6a5 (patch) | |
| tree | cd2f8446878637142000e16856468035077e7c7a /src/doc/reference.md | |
| parent | d034bc3e3a0b6cc9d7c2433a3b27d20bcbf0ff0f (diff) | |
| parent | 7a86bfc5df7f6813375baf574ff3d08e0f690bde (diff) | |
| download | rust-fa8c6d94d039e720f54196f3dee5b02c9378a6a5.tar.gz rust-fa8c6d94d039e720f54196f3dee5b02c9378a6a5.zip | |
Rollup merge of #23185 - steveklabnik:gh20051, r=alexcrichton
Fixes #20051
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index ee5ebfc7e88..4f5f2a631ad 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -229,14 +229,14 @@ cases mentioned in [Number literals](#number-literals) below. ##### Characters and strings -| | Example | Number of `#` pairs allowed | Available characters | Escapes | Equivalent to | -|---|---------|-----------------------------|----------------------|---------|---------------| -| [Character](#character-literals) | `'H'` | `N/A` | All unicode | `\'` & [Byte escapes](#byte-escapes) & [Unicode escapes](#unicode-escapes) | `N/A` | -| [String](#string-literals) | `"hello"` | `N/A` | All unicode | `\"` & [Byte escapes](#byte-escapes) & [Unicode escapes](#unicode-escapes) | `N/A` | -| [Raw](#raw-string-literals) | `r##"hello"##` | `0...` | All unicode | `N/A` | `N/A` | -| [Byte](#byte-literals) | `b'H'` | `N/A` | All ASCII | `\'` & [Byte escapes](#byte-escapes) | `u8` | -| [Byte string](#byte-string-literals) | `b"hello"` | `N/A` | All ASCII | `\"` & [Byte escapes](#byte-escapes) | `&'static [u8]` | -| [Raw byte string](#raw-byte-string-literals) | `br##"hello"##` | `0...` | All ASCII | `N/A` | `&'static [u8]` (unsure...not stated) | +| | Example | # sets | Characters | Escapes | +|----------------------------------------------|---------------|--------|-------------|---------------------| +| [Character](#character-literals) | 'H' | N/A | All Unicode | \' & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) | +| [String](#string-literals) | "hello" | N/A | All Unicode | \" & [Byte](#byte-escapes) & [Unicode](#unicode-escapes) | +| [Raw](#raw-string-literals) | r#"hello"# | 0... | All Unicode | N/A | +| [Byte](#byte-literals) | b'H' | N/A | All ASCII | \' & [Byte](#byte-escapes) | +| [Byte string](#byte-string-literals) | b"hello" | N/A | All ASCII | \" & [Byte](#byte-escapes) | +| [Raw byte string](#raw-byte-string-literals) | br#"hello"# | 0... | All ASCII | N/A | ##### Byte escapes |
