doc example does nothing

This commit is contained in:
Oliver Schneider 2015-03-05 13:30:30 +01:00
parent 68740b4054
commit 18f1e40eaa

View File

@ -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;