Update input_string.rs

This commit is contained in:
leopardracer 2025-02-25 12:03:03 +02:00 committed by GitHub
parent 6c286e32d4
commit f7c28ab44d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ impl_from!(&str);
///
/// This is created by `display_cannot_parse` method and should be used as
/// `write_err!("{}", self.input.display_cannot_parse("what is parsed"); self.source)` in parse
/// error [`Display`](fmt::Display) imlementation if the error has source. If the error doesn't
/// error [`Display`](fmt::Display) implementation if the error has source. If the error doesn't
/// have a source just use regular `write!` with same formatting arguments.
pub struct CannotParse<'a, T: fmt::Display + ?Sized> {
input: &'a InputString,