From 6cc4574d0b2172fd3aeb311ea38ddab8bc49c1f5 Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:58:55 +0200 Subject: [PATCH] Update Debug.md --- doc/Debug.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Debug.md b/doc/Debug.md index 25b66be..40d91c2 100644 --- a/doc/Debug.md +++ b/doc/Debug.md @@ -83,7 +83,7 @@ struct Foo { The field `bar` will be displayed with `path::to::my_fmt_fn(&bar, &mut fmt)` where `fmt` is the current [`Formatter`]. -The function must the following prototype: +The function must have the following prototype: ```rust,ignore fn fmt(&T, &mut std::fmt::Formatter) -> Result<(), std::fmt::Error>; @@ -150,4 +150,4 @@ struct Foo { #[derivative(Debug="ignore")] bar: String, } -``` \ No newline at end of file +```