From 60693853cff65a273d196c91aa53f63659057794 Mon Sep 17 00:00:00 2001 From: mcmah309 Date: Fri, 18 Oct 2024 02:56:10 +0000 Subject: [PATCH] doc: Update --- README.md | 3 ++- tests/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00a0ac9..a90836d 100644 --- a/README.md +++ b/README.md @@ -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; } diff --git a/tests/mod.rs b/tests/mod.rs index d40cc79..580983e 100644 --- a/tests/mod.rs +++ b/tests/mod.rs @@ -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), };