Skip to content

Commit

Permalink
Fixed a doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamschi committed Feb 16, 2022
1 parent d9db973 commit 4fff030
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
//! ## Combined Reinterpretation and Unsizing
//!
//! ```
//! # #[cfg(feature = "macros")]
//! # {
//! use fruit_salad::Dyncast;
//!
//! trait Trait {}
Expand All @@ -116,6 +118,7 @@
//! #[dyncast(unsafe T as dyn Trait)]
//! #[repr(transparent)]
//! struct DyncastWrapper<T: Trait>(pub T);
//! # }
//! ```
//!
//! # ☡ Potential Trip-ups
Expand Down

0 comments on commit 4fff030

Please sign in to comment.