diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-08 00:16:45 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-08 00:16:45 +0100 |
| commit | bd2371faefb2d2cd52477dbd2628013ed8feb103 (patch) | |
| tree | 6bf00a8232120b5231acb8a7347c5dcb4b1b635a /src/compiler.rs | |
| parent | 8e2c0e345facee83d63991dda548b71e6a0c4cf6 (diff) | |
| download | sylt-bd2371faefb2d2cd52477dbd2628013ed8feb103.tar.gz | |
minor fix some errors
Diffstat (limited to 'src/compiler.rs')
| -rw-r--r-- | src/compiler.rs | 6 |
1 files 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; } |
