diff options
| author | Oliver Schneider <git1984941651981@oli-obk.de> | 2015-03-05 13:30:30 +0100 |
|---|---|---|
| committer | Oliver Schneider <git1984941651981@oli-obk.de> | 2015-03-05 13:30:30 +0100 |
| commit | 18f1e40eaaf7ccde1333fbdfc9f15c4cf462a2a4 (patch) | |
| tree | 9fc34c86c16ad5fff901b63be20a2b2209869d43 | |
| parent | 68740b405404a3f885e388c8d31722797d519c30 (diff) | |
| download | rust-18f1e40eaaf7ccde1333fbdfc9f15c4cf462a2a4.tar.gz rust-18f1e40eaaf7ccde1333fbdfc9f15c4cf462a2a4.zip | |
doc example does nothing
| -rw-r--r-- | src/libcollections/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 599b92d05dd..f37f93a3e51 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -1083,7 +1083,7 @@ pub trait StrExt: Index<RangeFull, Output = str> { /// /// let s = "中华Việt Nam"; /// let mut i = s.len(); - /// while i < 0 { + /// while i > 0 { /// let CharRange {ch, next} = s.char_range_at_reverse(i); /// println!("{}: {}", i, ch); /// i = next; |
