Skip to content

Commit 9166428

Browse files
Xuanwodtolnay
andauthored
Update library/std/src/ffi/os_str.rs
Co-authored-by: David Tolnay <[email protected]>
1 parent 27b92c9 commit 9166428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/ffi/os_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl OsString {
267267
}
268268

269269
/// Tries to reserve capacity for at least `additional` more elements to be inserted
270-
/// in the given `OsString`. The collection may reserve more space to avoid
270+
/// in the given `OsString`. The string may reserve more space to avoid
271271
/// frequent reallocations. After calling `try_reserve`, capacity will be
272272
/// greater than or equal to `self.len() + additional`. Does nothing if
273273
/// capacity is already sufficient.

0 commit comments

Comments
 (0)