Skip to content

Commit 79bc934

Browse files
authored
Fixed a typo
"vector" was used instead of "string"
1 parent c79f5f0 commit 79bc934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl String {
407407
///
408408
/// assert_eq!(s.capacity(), cap);
409409
///
410-
/// // ...but this may make the vector reallocate
410+
/// // ...but this may make the string reallocate
411411
/// s.push('a');
412412
/// ```
413413
#[inline]

0 commit comments

Comments
 (0)