Skip to content

Commit f86952c

Browse files
committed
remove bus_id example filter
1 parent a4d4892 commit f86952c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/lib.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,7 @@ pub fn list_devices() -> Result<impl Iterator<Item = DeviceInfo>, Error> {
151151

152152
/// Get an iterator listing the system USB buses.
153153
///
154-
/// ### Examples
155-
///
156-
/// Filter for a specific bus ID:
157-
///
158-
/// ```no_run
159-
/// use nusb;
160-
/// let hub = nusb::list_buses().unwrap()
161-
/// .find(|bus| bus.bus_id().parse() == Ok(1))
162-
/// .expect("bus #1 not found");
163-
/// ```
154+
/// ### Example
164155
///
165156
/// Group devices by bus:
166157
///

0 commit comments

Comments
 (0)