From 5b9eac97e1cc0577578e10dd9ed043e8b519fd4b Mon Sep 17 00:00:00 2001 From: alaningtrump Date: Thu, 2 Jul 2026 21:18:06 +0800 Subject: [PATCH] chore: minor improvement for comments Signed-off-by: alaningtrump --- crates/cairo-lang-parser/src/parser.rs | 2 +- crates/cairo-lang-syntax/src/node/ast_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cairo-lang-parser/src/parser.rs b/crates/cairo-lang-parser/src/parser.rs index d7671e44d16..3013482e3a7 100644 --- a/crates/cairo-lang-parser/src/parser.rs +++ b/crates/cairo-lang-parser/src/parser.rs @@ -1338,7 +1338,7 @@ impl<'a, 'mt> Parser<'a, 'mt> { } /// Assumes the current token is Impl. - /// Expects either an impl item (`impl of {}`) or and impl alias + /// Expects either an impl item (`impl of {}`) or an impl alias /// `impl = ;`. /// If `only_allow_alias` is true, always returns an ImplItemOrAlias::Alias. fn expect_item_impl_inner( diff --git a/crates/cairo-lang-syntax/src/node/ast_test.rs b/crates/cairo-lang-syntax/src/node/ast_test.rs index ff44c3d3afe..bc26e957221 100644 --- a/crates/cairo-lang-syntax/src/node/ast_test.rs +++ b/crates/cairo-lang-syntax/src/node/ast_test.rs @@ -180,7 +180,7 @@ fn setup(db: &DatabaseForTesting) -> SyntaxNode<'_> { ); // SyntaxNode::new_detached_root only accepts ast::SyntaxFileGreen, but we only have an // expression. - // This is a hack to crate a green id of "SyntaxFile" from "Expr". + // This is a hack to create a green id of "SyntaxFile" from "Expr". let root = SyntaxFileGreen(expr.0); let file_id = FileLongId::OnDisk(PathBuf::default()).intern(db); SyntaxNode::new_detached_root(db, file_id, root.0)