Skip to content

Commit

Permalink
chore: Fix library descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
poi2 committed Aug 9, 2023
1 parent 1812697 commit 509df32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ assert!(user.age < 18);
### Basic struct

You can use it in the basic struct.
Each field must implement the traits `Eq` and `Display`.
Each field must implement the traits `Eq` and `Debug`.

```rust
use fluent_field_assertions::FluentFieldAssertions;
Expand Down Expand Up @@ -100,15 +100,15 @@ assert!(user.age < 18);
### Generic struct

You can also use it in the generic struct.
In that case, Generics type `T` must implement the traits `Eq` and `Display`.
In that case, Generics type `T` must implement the traits `Eq` and `Debug`.

```rust
use core::fmt::Debug;
use fluent_field_assertions::FluentFieldAssertions;

#[derive(FluentFieldAssertions)]
struct Point<T>
// Generics type `T` must implement trait `Eq` and `Display`.
// Generics type `T` must implement trait `Eq` and `Debug`.
where
T: Eq + Debug,
{
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern crate proc_macro2;
///
/// #[derive(FluentFieldAssertions)]
/// struct Point<T>
/// // Generics type `T` must implement trait `Eq` and `Display`.
/// // Generics type `T` must implement trait `Eq` and `Debug`.
/// where
/// T: Eq + Debug,
/// {
Expand Down
2 changes: 1 addition & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ mod test {

#[derive(FluentFieldAssertions)]
struct Point<T>
// Generics type `T` must implement trait `Eq` and `Display`.
// Generics type `T` must implement trait `Eq` and `Debug`.
where
T: Eq + Debug,
{
Expand Down

0 comments on commit 509df32

Please sign in to comment.