From cbd26efdd4f9a2bdf06be0698acc1878ccfc61ce Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 23 Jan 2024 15:34:42 +0100 Subject: [PATCH] chore: highlight required the macro position even more --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f15d717..42e28a3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ fn value_default() -> u32 { 42 } That can get quiet messy if you have many fields with many (different) default values. This crate tries to solve this issue by providing the `#[serde_inline_default]` proc macro. -With this macro set at the struct level (_before `#[derive(Deserialize)]`/`#[derive(Serialize)]`!_, otherwise it's not working correctly), you can set default values via `#[serde_inline_default(...)]` for your serde fields inline, without creating an extra function. +With this macro set at the struct level (_**before `#[derive(Deserialize)]`/`#[derive(Serialize)]`!, otherwise it's not working correctly**_), you can set default values via `#[serde_inline_default(...)]` for your serde fields inline, without creating an extra function. ```rust #[serde_inline_default]