Skip to content

Commit

Permalink
doc: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Oct 18, 2024
1 parent f348944 commit 6069385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ error_set! {
InvalidCredentials
};
LoginError = {
#[display("Io Error: {}")] // equivalent to `#[display("Io Error: {}", source)]`
// Below is equivalent to `#[display("Io Error: {}", source)]` or `#[display("Io Error: {}")]`
#[display("Io Error: {0}")]
IoError(std::io::Error),
} || AuthError;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ pub mod display_ref_error {
IoError(std::io::Error),
};
Z = {
#[display("Z io error: {}")]
#[display("Z io error: {0}")]
IoError(std::io::Error),
};

Expand Down

0 comments on commit 6069385

Please sign in to comment.