From f786f8d452f09614bdace0b7adc271713077951e Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Mon, 18 Nov 2024 13:36:13 +0100 Subject: [PATCH] util.rs: Correct a typo Part-of: --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))