Skip to content

Commit 6d503c9

Browse files
m-ou-sethe8472
andauthored
Fix typos
Co-authored-by: the8472 <[email protected]>
1 parent 3ce4783 commit 6d503c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/io/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ impl Error {
264264
/// Creates a new I/O error from a known kind of error as well as a
265265
/// constant message.
266266
///
267-
/// This function not allocate.
267+
/// This function does not allocate.
268268
///
269269
/// This function should maybe change to
270270
/// `new_const<const MSG: &'static str>(kind: ErrorKind)`
271-
/// in the future, when const generics allows that.
271+
/// in the future, when const generics allow that.
272272
pub(crate) const fn new_const(kind: ErrorKind, message: &'static &'static str) -> Error {
273273
Self { repr: Repr::SimpleMessage(kind, message) }
274274
}

0 commit comments

Comments
 (0)