Update library/std/src/ffi/os_str.rs

Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
Xuanwo 2021-12-29 13:49:39 +08:00 committed by GitHub
parent 27b92c9f98
commit 9166428be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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