diff --git a/embassy-usb-driver/src/host.rs b/embassy-usb-driver/src/host.rs index c35e403456..f0967bd928 100644 --- a/embassy-usb-driver/src/host.rs +++ b/embassy-usb-driver/src/host.rs @@ -4,7 +4,7 @@ use core::time::Duration; use crate::{EndpointInfo, EndpointType, Speed}; -/// Errors returned by [`ChannelOut::write`] and [`ChannelIn::read`] +/// Errors returned by [`UsbChannel`] operations. #[derive(Copy, Clone, Eq, PartialEq, Debug)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] pub enum ChannelError { @@ -176,7 +176,7 @@ pub trait UsbHostDriver: Sized { /// Type-level channel markers for endpoint type and direction. /// -/// These structs and traits are used as generic parameters on [`UsbChannel`](super::UsbChannel) +/// These structs and traits are used as generic parameters on [`UsbChannel`] /// to statically enforce correct endpoint type and direction at compile time. /// /// All marker traits are sealed — they cannot be implemented outside this crate. diff --git a/embassy-usb/src/class/web_usb.rs b/embassy-usb/src/class/web_usb.rs index 154b219caa..ca1b9c9716 100644 --- a/embassy-usb/src/class/web_usb.rs +++ b/embassy-usb/src/class/web_usb.rs @@ -1,6 +1,6 @@ //! WebUSB API capability implementation. //! -//! See https://wicg.github.io/webusb +//! See use core::mem::MaybeUninit; @@ -131,7 +131,7 @@ impl<'d> State<'d> { /// WebUSB capability implementation. /// /// WebUSB is a W3C standard that allows a web page to communicate with USB devices. -/// See See https://wicg.github.io/webusb for more information and the browser API. +/// See for more information and the browser API. /// This implementation provides one read and one write endpoint. pub struct WebUsb<'d, D: Driver<'d>> { _driver: core::marker::PhantomData<&'d D>, diff --git a/embassy-usb/src/msos.rs b/embassy-usb/src/msos.rs index 6d7f87061b..2d8cc70f87 100644 --- a/embassy-usb/src/msos.rs +++ b/embassy-usb/src/msos.rs @@ -9,7 +9,7 @@ use crate::types::InterfaceNumber; /// A serialized Microsoft OS 2.0 Descriptor set. /// -/// Create with [`DeviceDescriptorSetBuilder`]. +/// Create with [`MsOsDescriptorWriter`]. pub struct MsOsDescriptorSet<'d> { descriptor: &'d [u8], vendor_code: u8,