From a051f8b2616ced238edada35a22815d393836c5d Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sat, 18 Nov 2023 15:01:03 +0800 Subject: [PATCH] Fix PacketMeta doc issues --- src/phy/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phy/mod.rs b/src/phy/mod.rs index 677e78b47..5b4a2ce2b 100644 --- a/src/phy/mod.rs +++ b/src/phy/mod.rs @@ -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))]