Skip to content

Commit

Permalink
Give LexError more descriptive Display impl
Browse files Browse the repository at this point in the history
  • Loading branch information
kinseytamsin committed Mar 11, 2020
1 parent f2b22a1 commit 5099ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub struct LexError {
#[stable(feature = "proc_macro_lexerror_impls", since = "1.44.0")]
impl fmt::Display for LexError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("lex error")
f.write_str("cannot parse string into token stream")
}
}

Expand Down

0 comments on commit 5099ab6

Please sign in to comment.