Fix typos
Co-authored-by: the8472 <the8472@users.noreply.github.com>
This commit is contained in:
parent
7b71719faf
commit
6bbcc5bfbb
1 changed files with 2 additions and 2 deletions
|
@ -264,11 +264,11 @@ impl Error {
|
||||||
/// Creates a new I/O error from a known kind of error as well as a
|
/// Creates a new I/O error from a known kind of error as well as a
|
||||||
/// constant message.
|
/// constant message.
|
||||||
///
|
///
|
||||||
/// This function not allocate.
|
/// This function does not allocate.
|
||||||
///
|
///
|
||||||
/// This function should maybe change to
|
/// This function should maybe change to
|
||||||
/// `new_const<const MSG: &'static str>(kind: ErrorKind)`
|
/// `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 {
|
pub(crate) const fn new_const(kind: ErrorKind, message: &'static &'static str) -> Error {
|
||||||
Self { repr: Repr::SimpleMessage(kind, message) }
|
Self { repr: Repr::SimpleMessage(kind, message) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue