about summary refs log tree commit diff
path: root/library/std/src/ffi
diff options
context:
space:
mode:
authorXuanwo <github@xuanwo.io>2021-12-29 13:49:39 +0800
committerGitHub <noreply@github.com>2021-12-29 13:49:39 +0800
commit9166428be18f5348b2c6cb5301986d29e5a0af9c (patch)
tree583504ba8b82e0d8f918253b82d45d42986beebf /library/std/src/ffi
parent27b92c9f98a0ea3070b988819bb3aa1111ed0382 (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.rs2
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.