From ff416f0f4067492e845d28f7e096c7b9c579bc9c Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Fri, 24 Jan 2020 14:16:10 +0100 Subject: [PATCH] FIX messed up comments in tokens.rs --- src/tokens.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tokens.rs b/src/tokens.rs index 6136575..e5cef2a 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -4,16 +4,16 @@ use std::fmt; /// struct that contains a single token pub struct Token<'a> { // the type - pub lexeme: &'a str, + pub token_type: TokenType, // the actual part of the code that resulted in this token - pub literal: Box, + pub lexeme: &'a str, // numeric (ie 1,2, 1.0 etc) and alphanumeric (any quoted text) values - pub line: usize, + pub literal: Box, // the line that contains the code for this token instance - pub token_type: TokenType, + pub line: usize, } impl Token<'_> {