doc example does nothing
This commit is contained in:
parent
68740b4054
commit
18f1e40eaa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user