diff options
| author | bors <bors@rust-lang.org> | 2013-12-19 02:36:34 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-19 02:36:34 -0800 |
| commit | b3cee6203457b98c030a8597f97b037a8d447f40 (patch) | |
| tree | 255c702d2a89379ca8b7d3016c07626062e6c47d | |
| parent | ac28718f73452fbf63bb26d4113d29543913037d (diff) | |
| parent | cacf58caff54cd8c31886aa9ffdd54672085129f (diff) | |
| download | rust-b3cee6203457b98c030a8597f97b037a8d447f40.tar.gz rust-b3cee6203457b98c030a8597f97b037a8d447f40.zip | |
auto merge of #11065 : huonw/rust/slice-chars-example, r=cmr
| -rw-r--r-- | src/libstd/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 78a09d459de..7225a1ab6cb 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -1662,7 +1662,7 @@ pub trait StrSlice<'a> { /// ```rust /// let s = "Löwe 老虎 Léopard"; /// assert_eq!(s.slice_chars(0, 4), "Löwe"); - /// assert_eq!(s.slice_chars(6, 8), "老虎"); + /// assert_eq!(s.slice_chars(5, 7), "老虎"); /// ``` fn slice_chars(&self, begin: uint, end: uint) -> &'a str; |
