Fixed documentation errors

This commit is contained in:
G2-Games 2024-02-08 03:04:49 -06:00
parent e5b0bcc731
commit 1b8df6ab26
3 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View file

@ -7,5 +7,7 @@ wasm-pack.log
www www
.xwin-cache/
.travis .travis
.appveyor .appveyor

View file

@ -60,7 +60,7 @@ pub use crate::context::UsbDevice;
pub use crate::context::UsbInterface; pub use crate::context::UsbInterface;
/// Information about a USB device for finding it while trying /// Information about a USB device for finding it while trying
/// to look for new USB devices using [get_device_filter] /// to look for new USB devices using [get_device]
#[doc(inline)] #[doc(inline)]
pub use crate::context::DeviceFilter; pub use crate::context::DeviceFilter;

View file

@ -20,8 +20,7 @@ pub trait Device {
/// request a new device with [crate::get_device] or [crate::get_device_filter] /// request a new device with [crate::get_device] or [crate::get_device_filter]
async fn reset(&self) -> Result<(), UsbError>; async fn reset(&self) -> Result<(), UsbError>;
/// Remove the device from the paired devices list, causing it to no longer be usable. /// Remove the device from the paired devices list, causing it to no longer be usable. You must request to reconnect using [crate::get_device]
/// You must request to reconnect using [crate::get_device] or [crate::get_device_filter]
/// ///
/// **Note: on Native with `nusb` this simply resets the device** /// **Note: on Native with `nusb` this simply resets the device**
async fn forget(&self) -> Result<(), UsbError>; async fn forget(&self) -> Result<(), UsbError>;