diff --git a/src/util.rs b/src/util.rs index d96f69e6..d8fcb9aa 100644 --- a/src/util.rs +++ b/src/util.rs @@ -311,7 +311,7 @@ pub trait WarningHandler { fn handle(&mut self, warning: &str); } -/// Removes the first matcing item +/// Removes the first matching item pub fn vec_remove bool>(v: &mut Vec, pred: F) -> Option { let idx = v.iter().position(pred); idx.map(|idx| v.remove(idx))