From f85de4ce31390ed41405202c6e08efe652439ae5 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Apr 2021 18:40:35 -0600 Subject: name the strip_prefix argument prefix oops --- src/makefile/token.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/makefile/token.rs b/src/makefile/token.rs index 2f90f50..05ad98c 100644 --- a/src/makefile/token.rs +++ b/src/makefile/token.rs @@ -87,9 +87,9 @@ impl TokenString { } } - pub fn strip_prefix(&mut self, suffix: &str) { + pub fn strip_prefix(&mut self, prefix: &str) { if let Some(Token::Text(t)) = self.0.first_mut() { - if let Some(x) = t.strip_prefix(suffix) { + if let Some(x) = t.strip_prefix(prefix) { *t = x.into() } } -- cgit v1.2.3