diff options
| author | Xuanwo <github@xuanwo.io> | 2021-12-29 13:49:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-29 13:49:39 +0800 |
| commit | 9166428be18f5348b2c6cb5301986d29e5a0af9c (patch) | |
| tree | 583504ba8b82e0d8f918253b82d45d42986beebf /library/std/src/ffi | |
| parent | 27b92c9f98a0ea3070b988819bb3aa1111ed0382 (diff) | |
Update library/std/src/ffi/os_str.rs
Co-authored-by: David Tolnay <dtolnay@gmail.com>
Diffstat (limited to 'library/std/src/ffi')
| -rw-r--r-- | library/std/src/ffi/os_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index 2933018a495..9b853fba41b 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -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. |
