From bd2371faefb2d2cd52477dbd2628013ed8feb103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 8 Mar 2021 00:16:45 +0100 Subject: minor fix some errors --- src/compiler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler.rs b/src/compiler.rs index c4f687f..b2900b6 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -680,7 +680,7 @@ impl Compiler { } fn tuple(&mut self, block: &mut Block) { - expect!(self, Token::LeftParen, "Expected '(' at start of tuple"); + expect!(self, Token::LeftParen, "Expected '(' at start of tuple."); let mut num_args = 0; let trailing_comma = loop { @@ -711,7 +711,7 @@ impl Compiler { }, Token::RightParen => {}, _ => { - error!(self, "Expected ',' or ')' in tuple"); + error!(self, "Expected ',' or ')' after tuple element."); return; }, } @@ -719,7 +719,7 @@ impl Compiler { } }; if num_args == 1 && !trailing_comma { - error!(self, "A tuple must contain more than 1 element or end with a trailing comma."); + error!(self, "A tuple with 1 element must end with a trailing comma."); return; } -- cgit v1.2.1