diff options
| author | Mathias Fischler <Mafii@users.noreply.github.com> | 2023-06-12 12:46:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 12:46:08 +0200 |
| commit | 93e6638bfe171e3c337876d2143e4e048cd8b279 (patch) | |
| tree | fbed2ca8b0ec432ceec05482193aaec097778dfa /src/eval | |
| parent | 6a7182fcf71d05e2bb32072a56715497a03f0314 (diff) | |
Resolve #1141: Add hint for missing numbering, improve hint format consistency (#1456)
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/cast.rs | 2 | ||||
| -rw-r--r-- | src/eval/scope.rs | 2 |
2 files changed, 2 insertions, 2 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) } |
