diff options
| author | Hsiang-Cheng Yang <rick68@users.noreply.github.com> | 2018-10-27 14:33:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-27 14:33:07 +0800 |
| commit | 4cb611f3d1287526b99e9de93f7f034ab60947cd (patch) | |
| tree | 092cd8d3e809722e941aa2dd53ea5886755d7f6d /src/liballoc/string.rs | |
| parent | 10f42cbde015c44a019e8b6dceca472a1532f36a (diff) | |
| download | rust-4cb611f3d1287526b99e9de93f7f034ab60947cd.tar.gz rust-4cb611f3d1287526b99e9de93f7f034ab60947cd.zip | |
Update string.rs
remove unused variable i in example String::with_capacity()
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index ab3f8fc2707..ff3587d5d87 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -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'); /// } /// |
