Update string.rs

remove unused variable i in example String::with_capacity()
This commit is contained in:
Hsiang-Cheng Yang 2018-10-27 14:33:07 +08:00 committed by GitHub
parent 10f42cbde0
commit 4cb611f3d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');
/// }
///