From 18f1e40eaaf7ccde1333fbdfc9f15c4cf462a2a4 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 5 Mar 2015 13:30:30 +0100 Subject: [PATCH] doc example does nothing --- src/libcollections/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { /// /// 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;