From b96b7b7ee12a5d1c8e8c24c95b58b7ca03cec44b Mon Sep 17 00:00:00 2001 From: MALO <57839069+MDLC01@users.noreply.github.com> Date: Sat, 24 Jun 2023 14:33:17 +0200 Subject: Use third person in documentation (#1560) --- src/syntax/lexer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/lexer.rs b/src/syntax/lexer.rs index d0e5c9bd..ae4462d9 100644 --- a/src/syntax/lexer.rs +++ b/src/syntax/lexer.rs @@ -203,7 +203,7 @@ impl Lexer<'_> { if self.s.eat_if("u{") { let hex = self.s.eat_while(char::is_ascii_alphanumeric); if !self.s.eat_if('}') { - return self.error("unclosed unicode escape sequence"); + return self.error("unclosed Unicode escape sequence"); } if u32::from_str_radix(hex, 16) @@ -211,7 +211,7 @@ impl Lexer<'_> { .and_then(std::char::from_u32) .is_none() { - return self.error(eco_format!("invalid unicode codepoint: {}", hex)); + return self.error(eco_format!("invalid Unicode codepoint: {}", hex)); } return SyntaxKind::Escape; -- cgit v1.2.3