aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/token.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-26 21:29:44 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-26 21:29:44 -0600
commit9d252beea27dc6b3f8b8a938375a17f291cdad2b (patch)
tree351c50aff265943a1bff0cbeaafae49299a605da /src/makefile/token.rs
parent41ad330695cb844ee0c6846ac307f33cbd2068a7 (diff)
downloadmakers-9d252beea27dc6b3f8b8a938375a17f291cdad2b.tar.gz
makers-9d252beea27dc6b3f8b8a938375a17f291cdad2b.zip
start at the start, not the end
Diffstat (limited to 'src/makefile/token.rs')
-rw-r--r--src/makefile/token.rs2
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();
}
}