aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs6
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;
}