From 4cb611f3d1287526b99e9de93f7f034ab60947cd Mon Sep 17 00:00:00 2001 From: Hsiang-Cheng Yang Date: Sat, 27 Oct 2018 14:33:07 +0800 Subject: [PATCH] Update string.rs remove unused variable i in example String::with_capacity() --- src/liballoc/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index ab3f8fc270720..ff3587d5d8730 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'); /// } ///