From d1741c500898ca665a9b7e2b6fa70b048353e125 Mon Sep 17 00:00:00 2001 From: yassun7010 Date: Sat, 22 Jun 2024 18:54:20 +0900 Subject: [PATCH] chore: docs. --- serde_valid/README.md | 2 +- serde_valid/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serde_valid/README.md b/serde_valid/README.md index 8ce785d..e71d215 100644 --- a/serde_valid/README.md +++ b/serde_valid/README.md @@ -188,7 +188,7 @@ use serde_valid::{fluent::Localize, Validate}; #[derive(Validate)] struct Data ( - #[validate(min_length = 3, message_l10n = fluent("name-min-length", min_length = 3))] + #[validate(min_length = 3, fluent("name-min-length", min_length = 3))] String, ); diff --git a/serde_valid/src/lib.rs b/serde_valid/src/lib.rs index 1b82b39..992cf3b 100644 --- a/serde_valid/src/lib.rs +++ b/serde_valid/src/lib.rs @@ -197,7 +197,7 @@ //! //! #[derive(Validate)] //! struct Data ( -//! #[validate(min_length = 3, message_l10n = fluent("name-min-length", min_length = 3))] +//! #[validate(min_length = 3, fluent("name-min-length", min_length = 3))] //! String, //! ); //!