From 81849352fc08b63cf9af296c7c8d9919a8e7a218 Mon Sep 17 00:00:00 2001 From: liangmulu Date: Wed, 9 Jul 2025 14:15:32 +0800 Subject: [PATCH] chore: remove redundant words in comment Signed-off-by: liangmulu --- crates/cli/src/main.rs | 2 +- crates/generate/src/build_tables/item_set_builder.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 56bbb411..391bfe9c 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -255,7 +255,7 @@ struct Test { /// Only run corpus test cases whose name does not match the given regex #[arg(long, short)] pub exclude: Option, - /// Only run corpus test cases from from a given filename + /// Only run corpus test cases from a given filename #[arg(long)] pub file_name: Option, /// The path to the tree-sitter grammar directory diff --git a/crates/generate/src/build_tables/item_set_builder.rs b/crates/generate/src/build_tables/item_set_builder.rs index a0bf02db..44e05702 100644 --- a/crates/generate/src/build_tables/item_set_builder.rs +++ b/crates/generate/src/build_tables/item_set_builder.rs @@ -81,7 +81,7 @@ impl<'a> ParseItemSetBuilder<'a> { .insert(symbol, ReservedWordSetId::default()); } - // The FIRST set of a non-terminal `i` is the union of the the FIRST sets + // The FIRST set of a non-terminal `i` is the union of the FIRST sets // of all the symbols that appear at the beginnings of i's productions. Some // of these symbols may themselves be non-terminals, so this is a recursive // definition.