Skip to content

Commit

Permalink
Documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruabmbua committed Jan 6, 2025
1 parent ce6183b commit c45aecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,6 @@ impl HidDevice {
/// `send_feature_report()`: 'the Report ID' (or 0x0, for devices which
/// do not use numbered reports), followed by the report data (16 bytes).
/// In this example, the length passed in would be 17.
///
/// If successful, returns the actual number of bytes written.
pub fn send_feature_report(&self, data: &[u8]) -> HidResult<()> {
self.inner.send_feature_report(data)
}
Expand Down Expand Up @@ -660,6 +658,8 @@ impl HidDevice {
///
/// User has to provide a preallocated buffer where the descriptor will be copied to.
/// It is recommended to use a preallocated buffer of [`MAX_REPORT_DESCRIPTOR_SIZE`] size.
///
/// On success returns the number of bytes actually filled into `buf`
pub fn get_report_descriptor(&self, buf: &mut [u8]) -> HidResult<usize> {
self.inner.get_report_descriptor(buf)
}
Expand Down

0 comments on commit c45aecf

Please sign in to comment.