diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-01 11:27:10 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-01 11:27:10 +0100 |
| commit | ab841188e3d2687ee8f436336e6fde337985a83e (patch) | |
| tree | 23504e66ea84e62e4354fa76ac199fc1ff658e8a /src/syntax/lexer.rs | |
| parent | 8f246406c61f3710fa6659e85d7c715b001ea05d (diff) | |
Bump `ecow`
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) }); } |
