about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-03-21 21:44:25 +0100
committerGitHub <noreply@github.com>2021-03-21 21:44:25 +0100
commit6bbcc5bfbbfd9ba5a6d584a753fa32d80e3a7a17 (patch)
tree8ddbd51f4dfd9bcaaf05ba5bcb1e3153f85e7eea
parent7b71719faf5ba6a230d097fddb288f79ccc570f1 (diff)
downloadrust-6bbcc5bfbbfd9ba5a6d584a753fa32d80e3a7a17.tar.gz
rust-6bbcc5bfbbfd9ba5a6d584a753fa32d80e3a7a17.zip
Fix typos
Co-authored-by: the8472 <the8472@users.noreply.github.com>
-rw-r--r--library/std/src/io/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index f4802c32a72..2122aa755e1 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -264,11 +264,11 @@ impl Error {
     /// Creates a new I/O error from a known kind of error as well as a
     /// constant message.
     ///
-    /// This function not allocate.
+    /// This function does not allocate.
     ///
     /// This function should maybe change to
     /// `new_const<const MSG: &'static str>(kind: ErrorKind)`
-    /// in the future, when const generics allows that.
+    /// in the future, when const generics allow that.
     pub(crate) const fn new_const(kind: ErrorKind, message: &'static &'static str) -> Error {
         Self { repr: Repr::SimpleMessage(kind, message) }
     }