summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Fischler <Mafii@users.noreply.github.com>2023-06-12 12:46:08 +0200
committerGitHub <noreply@github.com>2023-06-12 12:46:08 +0200
commit93e6638bfe171e3c337876d2143e4e048cd8b279 (patch)
treefbed2ca8b0ec432ceec05482193aaec097778dfa /src
parent6a7182fcf71d05e2bb32072a56715497a03f0314 (diff)
Resolve #1141: Add hint for missing numbering, improve hint format consistency (#1456)
Diffstat (limited to 'src')
-rw-r--r--src/eval/cast.rs2
-rw-r--r--src/eval/scope.rs2
-rw-r--r--src/syntax/parser.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/cast.rs b/src/eval/cast.rs
index 29cf5f71..917972ed 100644
--- a/src/eval/cast.rs
+++ b/src/eval/cast.rs
@@ -242,7 +242,7 @@ impl CastInfo {
if parts.iter().any(|p| p == "length");
if !matching_type;
then {
- write!(msg, ": a length needs a unit – did you mean {i}pt?").unwrap();
+ write!(msg, ": a length needs a unit - did you mean {i}pt?").unwrap();
}
};
diff --git a/src/eval/scope.rs b/src/eval/scope.rs
index bc62feb1..f2aa26fb 100644
--- a/src/eval/scope.rs
+++ b/src/eval/scope.rs
@@ -72,7 +72,7 @@ impl<'a> Scopes<'a> {
#[cold]
fn unknown_variable(var: &str) -> EcoString {
if var.contains('-') {
- eco_format!("unknown variable: {} – if you meant to use subtraction, try adding spaces around the minus sign.", var)
+ eco_format!("unknown variable: {} - if you meant to use subtraction, try adding spaces around the minus sign.", var)
} else {
eco_format!("unknown variable: {}", var)
}
diff --git a/src/syntax/parser.rs b/src/syntax/parser.rs
index 05db42e1..5fc9ec26 100644
--- a/src/syntax/parser.rs
+++ b/src/syntax/parser.rs
@@ -1060,7 +1060,7 @@ fn for_loop(p: &mut Parser) {
p.assert(SyntaxKind::For);
pattern(p);
if p.at(SyntaxKind::Comma) {
- p.expected("keyword `in`. did you mean to use a destructuring pattern?");
+ p.expected("keyword `in` - did you mean to use a destructuring pattern?");
if !p.eat_if(SyntaxKind::Ident) {
p.eat_if(SyntaxKind::Underscore);
}