Skip to content

Commit 6a87cb6

Browse files
committed
Revert book change
1 parent 669b3bf commit 6a87cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book_examples/src/data_md.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct TodoItem {
2121
due_date: Option<Arc<DateTime>>,
2222
// You can specify a custom comparison fn
2323
// (anything with the signature (&T, &T) -> bool).
24-
#[data(eq)]
24+
#[data(same_fn = "PartialEq::eq")]
2525
added_date: DateTime,
2626
title: String,
2727
note: Option<String>,

0 commit comments

Comments
 (0)