mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Update library/std/src/ffi/os_str.rs
Co-authored-by: David Tolnay <dtolnay@gmail.com>
This commit is contained in:
parent
27b92c9f98
commit
9166428be1
@ -267,7 +267,7 @@ impl OsString {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Tries to reserve capacity for at least `additional` more elements to be inserted
|
/// 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
|
/// frequent reallocations. After calling `try_reserve`, capacity will be
|
||||||
/// greater than or equal to `self.len() + additional`. Does nothing if
|
/// greater than or equal to `self.len() + additional`. Does nothing if
|
||||||
/// capacity is already sufficient.
|
/// capacity is already sufficient.
|
||||||
|
Loading…
Reference in New Issue
Block a user