mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
refactor(parser): correct comment (#2441)
Just correcting a typo in a comment, and moving comment to a better place.
This commit is contained in:
parent
996a9d27eb
commit
a5a3c695f7
1 changed files with 2 additions and 2 deletions
|
|
@ -234,10 +234,10 @@ impl SafeByteMatchTable {
|
||||||
macro_rules! safe_byte_match_table {
|
macro_rules! safe_byte_match_table {
|
||||||
(|$byte:ident| $res:expr) => {{
|
(|$byte:ident| $res:expr) => {{
|
||||||
use crate::lexer::search::SafeByteMatchTable;
|
use crate::lexer::search::SafeByteMatchTable;
|
||||||
|
// Clippy creates warnings because e.g. `safe_byte_match_table!(|b| b == 0)`
|
||||||
|
// is expanded to `SafeByteMatchTable([0 == 0, ... ])`
|
||||||
#[allow(clippy::eq_op)]
|
#[allow(clippy::eq_op)]
|
||||||
const TABLE: SafeByteMatchTable = seq_macro::seq!($byte in 0u8..=255 {
|
const TABLE: SafeByteMatchTable = seq_macro::seq!($byte in 0u8..=255 {
|
||||||
// Clippy creates warnings because e.g. `byte_match_table!(|b| b == 0)`
|
|
||||||
// is expanded to `SafeByteMatchTable([0 == 0, ... ])`
|
|
||||||
SafeByteMatchTable::new([#($res,)*])
|
SafeByteMatchTable::new([#($res,)*])
|
||||||
});
|
});
|
||||||
TABLE
|
TABLE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue