Update string.rs
remove unused variable i in example String::with_capacity()
This commit is contained in:
parent
10f42cbde0
commit
4cb611f3d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
/// }
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue