diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-14 18:40:35 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-14 18:40:35 -0600 |
commit | f85de4ce31390ed41405202c6e08efe652439ae5 (patch) | |
tree | c8f26a5be905ae30f4b6fcf0e696e19968914521 /src/makefile | |
parent | 37fe6c926e1752e514de619542c6f0e9a4169444 (diff) | |
download | makers-f85de4ce31390ed41405202c6e08efe652439ae5.tar.gz makers-f85de4ce31390ed41405202c6e08efe652439ae5.zip |
name the strip_prefix argument prefix oops
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile/token.rs | 4 |
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() } } |