diff options
Diffstat (limited to 'src/syntax/lexer.rs')
| -rw-r--r-- | src/syntax/lexer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/lexer.rs b/src/syntax/lexer.rs index bd168f0a..31608d40 100644 --- a/src/syntax/lexer.rs +++ b/src/syntax/lexer.rs @@ -1,4 +1,4 @@ -use ecow::{format_eco, EcoString}; +use ecow::{eco_format, EcoString}; use unicode_segmentation::UnicodeSegmentation; use unicode_xid::UnicodeXID; use unscanny::Scanner; @@ -254,9 +254,9 @@ impl Lexer<'_> { let remaining = backticks - found; let noun = if remaining == 1 { "backtick" } else { "backticks" }; return self.error_at_end(if found == 0 { - format_eco!("expected {} {}", remaining, noun) + eco_format!("expected {} {}", remaining, noun) } else { - format_eco!("expected {} more {}", remaining, noun) + eco_format!("expected {} more {}", remaining, noun) }); } |
