Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Cameron <[email protected]>
  • Loading branch information
nrc committed Aug 29, 2024
1 parent bd4486d commit 3389ef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
//! to `impl Into<T>`, and populates the field with `value.into()`:
//!
//! ```rust
//! # use derive_new::new;
//! #[derive(new)]
//! struct Foo {
//! #[new(into)]
Expand All @@ -81,6 +82,7 @@
//! to `impl IntoIterator<Item = T>`, and populates the field with `value.into_iter().collect()`:
//!
//! ```rust
//! # use derive_new::new;
//! #[derive(new)]
//! struct Foo {
//! #[new(into_iter = "bool")]
Expand Down

0 comments on commit 3389ef2

Please sign in to comment.