Skip to content

Commit

Permalink
Apply suggestions from code review (Partial)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
Atreyagaurav and lnicola committed Jan 5, 2024
1 parent fd3de15 commit f137c7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,14 @@ impl DriverManager {

/// Get an `Iterator` for all the drivers.
///
/// Warning: Adding or removing drivers while comsuming the
/// Iterator can have unexpected results.
/// Warning: Adding or removing drivers while consuming the
/// iterator is safe, but can produce less useful results.
pub fn all() -> DriverIterator {
DriverIterator::new()
DriverIterator { current: 0 }
}
}

/// Iterator for the registered `Driver`s in `DriverManager`
/// Iterator for the registered [`Driver`]s in [`DriverManager`]
pub struct DriverIterator {
current: usize,
}
Expand Down

0 comments on commit f137c7b

Please sign in to comment.