From 79bc934ff3ec527a8ec17aa7b1a20ed271ca7508 Mon Sep 17 00:00:00 2001 From: TrolledWoods Date: Thu, 5 Mar 2020 20:20:02 +0100 Subject: [PATCH] Fixed a typo "vector" was used instead of "string" --- src/liballoc/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]