Skip to content

Commit

Permalink
Rollup merge of rust-lang#55406 - rick68:patch-16, r=varkor
Browse files Browse the repository at this point in the history
Update string.rs

remove unused variable i in example String::with_capacity()
  • Loading branch information
Mark-Simulacrum committed Oct 27, 2018
2 parents 18d3f3f + 4cb611f commit 545eae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
/// }
///
Expand Down

0 comments on commit 545eae8

Please sign in to comment.