]> git.lizzy.rs Git - rust.git/commitdiff
Update library/std/src/ffi/os_str.rs
authorXuanwo <github@xuanwo.io>
Wed, 29 Dec 2021 05:49:39 +0000 (13:49 +0800)
committerGitHub <noreply@github.com>
Wed, 29 Dec 2021 05:49:39 +0000 (13:49 +0800)
Co-authored-by: David Tolnay <dtolnay@gmail.com>
library/std/src/ffi/os_str.rs

index 2933018a495362e80391b68be208dab7c08e3229..9b853fba41b79317688db29c87b07facc7ac4750 100644 (file)
@@ -267,7 +267,7 @@ pub fn reserve(&mut self, additional: usize) {
     }
 
     /// 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.