diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-09 14:08:10 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-11 11:30:38 -0800 |
| commit | 52edb2ecc9530264dc75babe477fd75c64feac04 (patch) | |
| tree | 7110ee1e9e8b123ffdd8be4dd1e9b6213b9cb08c /src/libunicode/u_str.rs | |
| parent | b25e100173effba685d076cee16f8af150078617 (diff) | |
Register new snapshots
Diffstat (limited to 'src/libunicode/u_str.rs')
| -rw-r--r-- | src/libunicode/u_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs index e4b2b682b2c..f3aaad549c9 100644 --- a/src/libunicode/u_str.rs +++ b/src/libunicode/u_str.rs @@ -46,8 +46,8 @@ pub trait UnicodeStrPrelude for Sized? { /// # Example /// /// ```rust - /// let gr1 = "a\u0310e\u0301o\u0308\u0332".graphemes(true).collect::<Vec<&str>>(); - /// let b: &[_] = &["a\u0310", "e\u0301", "o\u0308\u0332"]; + /// let gr1 = "a\u{0310}e\u{0301}o\u{0308}\u{0332}".graphemes(true).collect::<Vec<&str>>(); + /// let b: &[_] = &["a\u{0310}", "e\u{0301}", "o\u{0308}\u{0332}"]; /// assert_eq!(gr1.as_slice(), b); /// let gr2 = "a\r\nb🇷🇺🇸🇹".graphemes(true).collect::<Vec<&str>>(); /// let b: &[_] = &["a", "\r\n", "b", "🇷🇺🇸🇹"]; |
