Skip to content

Commit

Permalink
chore: Fix typo in code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 25, 2024
1 parent acafc23 commit b5d4cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bin/git-warp-time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ enum Error {
UnableToFormPath {},
}

// CLI errors are reported using the Debug trait, but Snafu sets up the Display tait. So we
// deligate. c.f. https://github.com/shepmaster/snafu/issues/110
// Clap CLI errors are reported using the Debug trait, but Snafu sets up the Display trait.
// So we delegate. c.f. https://github.com/shepmaster/snafu/issues/110
impl std::fmt::Debug for Error {
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
std::fmt::Display::fmt(self, fmt)
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ pub enum Error {
UnresolvedError {},
}

// CLI errors are reported using the Debug trait, but Snafu sets up the Display tait. So we
// deligate. c.f. https://github.com/shepmaster/snafu/issues/110
// Clap CLI errors are reported using the Debug trait, but Snafu sets up the Display trait.
// So we delegate. c.f. https://github.com/shepmaster/snafu/issues/110
impl std::fmt::Debug for Error {
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
std::fmt::Display::fmt(self, fmt)
Expand Down

0 comments on commit b5d4cf7

Please sign in to comment.