Fixed a typo

"vector" was used instead of "string"
This commit is contained in:
TrolledWoods 2020-03-05 20:20:02 +01:00 committed by GitHub
parent c79f5f0647
commit 79bc934ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,7 +407,7 @@ impl String {
///
/// assert_eq!(s.capacity(), cap);
///
/// // ...but this may make the vector reallocate
/// // ...but this may make the string reallocate
/// s.push('a');
/// ```
#[inline]