We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce4783 commit 6d503c9Copy full SHA for 6d503c9
std/src/io/error.rs
@@ -264,11 +264,11 @@ impl Error {
264
/// Creates a new I/O error from a known kind of error as well as a
265
/// constant message.
266
///
267
- /// This function not allocate.
+ /// This function does not allocate.
268
269
/// This function should maybe change to
270
/// `new_const<const MSG: &'static str>(kind: ErrorKind)`
271
- /// in the future, when const generics allows that.
+ /// in the future, when const generics allow that.
272
pub(crate) const fn new_const(kind: ErrorKind, message: &'static &'static str) -> Error {
273
Self { repr: Repr::SimpleMessage(kind, message) }
274
}
0 commit comments