Skip to content

Commit

Permalink
Fix PacketMeta doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive authored Nov 18, 2023
1 parent a1d4307 commit a051f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/phy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ pub use self::tuntap_interface::TunTapInterface;
/// default values and then set the fields you want. This makes adding metadata
/// fields a non-breaking change.
///
/// ```rust,ignore
/// let mut meta = PacketMeta::new();
/// ```rust
/// let mut meta = smoltcp::phy::PacketMeta::default();
/// meta.id = 15;
/// ```
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
Expand Down

0 comments on commit a051f8b

Please sign in to comment.