diff --git a/serde_valid/README.md b/serde_valid/README.md index c99bae9..8ce785d 100644 --- a/serde_valid/README.md +++ b/serde_valid/README.md @@ -177,8 +177,8 @@ assert_eq!( You can also use [fluent](https://projectfluent.org/) localization by using `fluent` feature. Allow the following attributes: +- `#[validate(..., fluent("message-id", key1 = value1, ...))]` - `#[validate(..., message_l10n = fluent("message-id", key1 = value1, ...))]` -- `#[validate(..., fluent("message-id", key1 = value1, ...))]` ```rust use unic_langid::LanguageIdentifier; diff --git a/serde_valid/src/lib.rs b/serde_valid/src/lib.rs index f76e177..1b82b39 100644 --- a/serde_valid/src/lib.rs +++ b/serde_valid/src/lib.rs @@ -177,8 +177,8 @@ //! You can also use [fluent](https://projectfluent.org/) localization by using `fluent` feature. //! //! Allow the following attributes: +//! - `#[validate(..., fluent("message-id", key1 = value1, ...))]` //! - `#[validate(..., message_l10n = fluent("message-id", key1 = value1, ...))]` -//! - `#[validate(..., fluent("message-id", key1 = value1, ...))]` //! //! ```rust //! # #[cfg(feature = "fluent")] {