Skip to content

Commit b3cee62

Browse files
committed
auto merge of #11065 : huonw/rust/slice-chars-example, r=cmr
2 parents ac28718 + cacf58c commit b3cee62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ pub trait StrSlice<'a> {
16621662
/// ```rust
16631663
/// let s = "Löwe 老虎 Léopard";
16641664
/// assert_eq!(s.slice_chars(0, 4), "Löwe");
1665-
/// assert_eq!(s.slice_chars(6, 8), "老虎");
1665+
/// assert_eq!(s.slice_chars(5, 7), "老虎");
16661666
/// ```
16671667
fn slice_chars(&self, begin: uint, end: uint) -> &'a str;
16681668

0 commit comments

Comments
 (0)