about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-27 23:27:24 +0100
committerGitHub <noreply@github.com>2024-03-27 23:27:24 +0100
commitea7789c56e61a91063035e2af685fcbbdd7c127b (patch)
treea1e1dbe3ad9b87d1097c0862d28446f0ac147009
parent45cec32ac3210429940da8857342248865d42ec6 (diff)
parentcc4a1f42e64d1061bb59e349e999b925e1e85b99 (diff)
downloadrust-ea7789c56e61a91063035e2af685fcbbdd7c127b.tar.gz
rust-ea7789c56e61a91063035e2af685fcbbdd7c127b.zip
Rollup merge of #123136 - Vagelis-Prokopiou:fix/docs, r=ChrisDenton
Some wording improvement

"Data" is usually considered as plural uncountable, therefore "some" seems to make more sense imo.
-rw-r--r--library/std/src/fs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 8b3a9e82aad..9017ba79714 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -385,7 +385,7 @@ impl File {
     /// See the [`OpenOptions::open`] function for more details.
     ///
     /// See also [`std::fs::write()`][self::write] for a simple function to
-    /// create a file with a given data.
+    /// create a file with some given data.
     ///
     /// # Examples
     ///
@@ -1036,7 +1036,7 @@ impl OpenOptions {
     /// [`OpenOptions::append`] access must be used.
     ///
     /// See also [`std::fs::write()`][self::write] for a simple function to
-    /// create a file with a given data.
+    /// create a file with some given data.
     ///
     /// # Examples
     ///