diff options
author | Melody Horn <melody@boringcactus.com> | 2021-03-26 21:29:44 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-03-26 21:29:44 -0600 |
commit | 9d252beea27dc6b3f8b8a938375a17f291cdad2b (patch) | |
tree | 351c50aff265943a1bff0cbeaafae49299a605da | |
parent | 41ad330695cb844ee0c6846ac307f33cbd2068a7 (diff) | |
download | makers-9d252beea27dc6b3f8b8a938375a17f291cdad2b.tar.gz makers-9d252beea27dc6b3f8b8a938375a17f291cdad2b.zip |
start at the start, not the end
-rw-r--r-- | src/makefile/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/token.rs b/src/makefile/token.rs index 4943010..8bac34f 100644 --- a/src/makefile/token.rs +++ b/src/makefile/token.rs @@ -67,7 +67,7 @@ impl TokenString { } pub fn trim_start(&mut self) { - if let Some(Token::Text(t)) = self.0.last_mut() { + if let Some(Token::Text(t)) = self.0.first_mut() { *t = t.trim_start().into(); } } |