about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-10-28 16:38:53 +0800
committerkennytm <kennytm@gmail.com>2018-10-28 21:23:38 +0800
commit7a95c285f7f7bdfac53fe06819f39fdea2eb0288 (patch)
tree7f336e8472bb3aead30b02251dbc28826071eddb /src/liballoc
parent316a4432be34fc7e2772f5c54d85ed3f96baac41 (diff)
parent4cb611f3d1287526b99e9de93f7f034ab60947cd (diff)
downloadrust-7a95c285f7f7bdfac53fe06819f39fdea2eb0288.tar.gz
rust-7a95c285f7f7bdfac53fe06819f39fdea2eb0288.zip
Rollup merge of #55406 - rick68:patch-16, r=varkor
Update string.rs

remove unused variable i in example String::with_capacity()
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs2
1 files changed, 1 insertions, 1 deletions
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');
     /// }
     ///