From 89a0aa89565c6e729107f9c06e957c54e959804d Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Fri, 24 Jan 2025 10:47:29 +0000 Subject: [PATCH] Comments --- crates/oxc_ast/src/utf8_to_utf16.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/oxc_ast/src/utf8_to_utf16.rs b/crates/oxc_ast/src/utf8_to_utf16.rs index 502cfe7674cf2f..79ce7881f38a98 100644 --- a/crates/oxc_ast/src/utf8_to_utf16.rs +++ b/crates/oxc_ast/src/utf8_to_utf16.rs @@ -21,15 +21,15 @@ struct Translation { } impl Utf8ToUtf16 { - #[expect(missing_docs)] + /// Create new `Utf8ToUtf16` converter. pub fn new() -> Self { Self::default() } - /// Convert all the spans in the AST. + /// Convert all the spans in the AST to UTF16. pub fn convert(mut self, program: &mut Program<'_>) { self.build_table(program.source_text); - // Skip if unicode is absent. + // Skip if source is entirely ASCII if self.translations.is_empty() { return; }