about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorTrolledWoods <trolledwoods@gmail.com>2020-03-05 20:20:02 +0100
committerGitHub <noreply@github.com>2020-03-05 20:20:02 +0100
commit79bc934ff3ec527a8ec17aa7b1a20ed271ca7508 (patch)
tree1934f396a2fe316ca702437311b7c8b9d633c158 /src/liballoc/string.rs
parentc79f5f064725535f7520e693e69c65c3d0f2730f (diff)
downloadrust-79bc934ff3ec527a8ec17aa7b1a20ed271ca7508.tar.gz
rust-79bc934ff3ec527a8ec17aa7b1a20ed271ca7508.zip
Fixed a typo
"vector" was used instead of "string"
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index f5afea15d65..c95f79472fe 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -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]