From a0a33d175b06e98e1f50075d3022be797fd87459 Mon Sep 17 00:00:00 2001 From: Kasper Date: Mon, 13 Jan 2020 01:55:48 +0100 Subject: [PATCH] Fixed Inch being lexed as InchOfMercury --- src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lexer.rs b/src/lexer.rs index 76fb93c..1ab9235 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -373,7 +373,7 @@ pub fn lex(input: &str) -> Result { }, _ => { // otherwise, Inch - tokens[token_index] = Token::Unit(InchOfMercury); + tokens[token_index] = Token::Unit(Inch); }, } },