Skip to content

Commit

Permalink
Fixed typo (#1705)
Browse files Browse the repository at this point in the history
impl Finish for IResult Err::Incomplete panic message had a double-space
  • Loading branch information
cod10129 authored Nov 7, 2023
1 parent 6c059ac commit 69628bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<I, O, E> Finish<I, O, E> for IResult<I, O, E> {
Ok(res) => Ok(res),
Err(Err::Error(e)) | Err(Err::Failure(e)) => Err(e),
Err(Err::Incomplete(_)) => {
panic!("Cannot call `finish()` on `Err(Err::Incomplete(_))`: this result means that the parser does not have enough data to decide, you should gather more data and try to reapply the parser instead")
panic!("Cannot call `finish()` on `Err(Err::Incomplete(_))`: this result means that the parser does not have enough data to decide, you should gather more data and try to reapply the parser instead")
}
}
}
Expand Down

0 comments on commit 69628bf

Please sign in to comment.