aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-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();
}
}