Skip to content

Commit

Permalink
Update string.rs
Browse files Browse the repository at this point in the history
remove unused variable i in example String::with_capacity()
  • Loading branch information
rick68 committed Oct 27, 2018
1 parent 10f42cb commit 4cb611f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/string.rs
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 4cb611f

Please sign in to comment.