From 16a4800a4f70814773a584098d0f6785c595f511 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Tue, 9 Dec 2025 10:00:06 +0300 Subject: [PATCH 1/2] fix (docs): minor grammar issues in comments --- crates/cairo-lang-starknet/src/compile.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/cairo-lang-starknet/src/compile.rs b/crates/cairo-lang-starknet/src/compile.rs index 156850575bc..496b7c39d34 100644 --- a/crates/cairo-lang-starknet/src/compile.rs +++ b/crates/cairo-lang-starknet/src/compile.rs @@ -35,7 +35,7 @@ use crate::starknet_plugin_suite; #[path = "compile_test.rs"] mod test; -/// Compile the contract given by path. +/// Compile the contract given by the path. /// Errors if there is ambiguity. pub fn compile_path( path: &Path, @@ -60,7 +60,7 @@ pub fn compile_path( /// Runs Starknet contract compiler on the specified contract. /// If no contract was specified, verify that there is only one. -/// Otherwise, return an error. +/// Otherwise, returns an error. pub fn compile_contract_in_prepared_db<'db>( db: &'db dyn Database, contract_path: Option<&str>, @@ -99,7 +99,7 @@ pub fn compile_contract_in_prepared_db<'db>( Ok(compile_prepared_db(db, &[contract], compiler_config)?.into_iter().exactly_one()?) } -/// Runs Starknet contracts compiler. +/// Runs Starknet contract compiler. /// /// # Arguments /// * `db` - Preloaded compilation database. @@ -121,10 +121,10 @@ pub fn compile_prepared_db<'db>( }) } -/// Compile declared Starknet contract. +/// Compile the declared Starknet contract. /// /// The `contract` value **must** come from `db`, for example as a result of calling -/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked by caller +/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked by the caller /// of this function. fn compile_contract_with_prepared_and_checked_db<'db>( db: &'db dyn Database, @@ -230,7 +230,7 @@ fn get_entry_points<'db>( Ok(entry_points) } -/// Compile Starknet crate (or specific contract in the crate). +/// Compile a Starknet crate (or specific contract in the crate). pub fn starknet_compile( crate_path: PathBuf, contract_path: Option, From 529145f5413278f377a249089101c72dfd275546 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Wed, 10 Dec 2025 12:35:01 +0300 Subject: [PATCH 2/2] Update compile.rs --- crates/cairo-lang-starknet/src/compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/cairo-lang-starknet/src/compile.rs b/crates/cairo-lang-starknet/src/compile.rs index 496b7c39d34..d36692b7837 100644 --- a/crates/cairo-lang-starknet/src/compile.rs +++ b/crates/cairo-lang-starknet/src/compile.rs @@ -124,8 +124,8 @@ pub fn compile_prepared_db<'db>( /// Compile the declared Starknet contract. /// /// The `contract` value **must** come from `db`, for example as a result of calling -/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked by the caller -/// of this function. +/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked +/// by the caller of this function. fn compile_contract_with_prepared_and_checked_db<'db>( db: &'db dyn Database, contract: &ContractDeclaration<'db>,