From 4cb611f3d1287526b99e9de93f7f034ab60947cd Mon Sep 17 00:00:00 2001 From: Hsiang-Cheng Yang Date: Sat, 27 Oct 2018 14:33:07 +0800 Subject: Update string.rs remove unused variable i in example String::with_capacity() --- src/liballoc/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc/string.rs') diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index ab3f8fc2707..ff3587d5d87 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -413,7 +413,7 @@ impl String { /// /// // These are all done without reallocating... /// let cap = s.capacity(); - /// for i in 0..10 { + /// for _ in 0..10 { /// s.push('a'); /// } /// -- cgit 1.4.1-3-g733a5