aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-14 18:40:35 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-14 18:40:35 -0600
commitf85de4ce31390ed41405202c6e08efe652439ae5 (patch)
treec8f26a5be905ae30f4b6fcf0e696e19968914521 /src
parent37fe6c926e1752e514de619542c6f0e9a4169444 (diff)
downloadmakers-f85de4ce31390ed41405202c6e08efe652439ae5.tar.gz
makers-f85de4ce31390ed41405202c6e08efe652439ae5.zip
name the strip_prefix argument prefix oops
Diffstat (limited to 'src')
-rw-r--r--src/makefile/token.rs4
1 files changed, 2 insertions, 2 deletions
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()
}
}