Skip to content

Commit 7a95c28

Browse files
committed
Rollup merge of rust-lang#55406 - rick68:patch-16, r=varkor
Update string.rs remove unused variable i in example String::with_capacity()
2 parents 316a443 + 4cb611f commit 7a95c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl String {
413413
///
414414
/// // These are all done without reallocating...
415415
/// let cap = s.capacity();
416-
/// for i in 0..10 {
416+
/// for _ in 0..10 {
417417
/// s.push('a');
418418
/// }
419419
///

0 commit comments

Comments
 (0)