Skip to content

Commit 18f1e40

Browse files
author
Oliver Schneider
committed
doc example does nothing
1 parent 68740b4 commit 18f1e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ pub trait StrExt: Index<RangeFull, Output = str> {
10831083
///
10841084
/// let s = "中华Việt Nam";
10851085
/// let mut i = s.len();
1086-
/// while i < 0 {
1086+
/// while i > 0 {
10871087
/// let CharRange {ch, next} = s.char_range_at_reverse(i);
10881088
/// println!("{}: {}", i, ch);
10891089
/// i = next;

0 commit comments

Comments
 (0)