From 0658504b1a761ad2ffc205b164903b57bd545a1c Mon Sep 17 00:00:00 2001 From: cbr4l0k <56004175+cbr4l0k@users.noreply.github.com> Date: Mon, 17 Nov 2025 17:47:01 +0300 Subject: [PATCH] Fix formatting in Wrapper Display implementation From: ```rust impl fmt::Display for Wrapper { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "[{}]", self.0.join(", ")) } } } ``` To: ```rust impl fmt::Display for Wrapper { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "[{}]", self.0.join(", ")) } } ``` --- guides/the-ultimate-guide-to-rust-newtypes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/the-ultimate-guide-to-rust-newtypes.md b/guides/the-ultimate-guide-to-rust-newtypes.md index d79afee..c5fbd70 100644 --- a/guides/the-ultimate-guide-to-rust-newtypes.md +++ b/guides/the-ultimate-guide-to-rust-newtypes.md @@ -29,7 +29,7 @@ struct Wrapper(Vec); impl fmt::Display for Wrapper { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "[{}]", self.0.join(", ")) } + write!(f, "[{}]", self.0.join(", ")) } } ```