Skip to content

Commit dad0333

Browse files
authored
fix (docs): grammar clean-up in comments (#8988)
1 parent 8f2df05 commit dad0333

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/cairo-lang-starknet/src/compile.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::starknet_plugin_suite;
3535
#[path = "compile_test.rs"]
3636
mod test;
3737

38-
/// Compile the contract given by path.
38+
/// Compile the contract given by the path.
3939
/// Errors if there is ambiguity.
4040
pub fn compile_path(
4141
path: &Path,
@@ -60,7 +60,7 @@ pub fn compile_path(
6060

6161
/// Runs Starknet contract compiler on the specified contract.
6262
/// If no contract was specified, verify that there is only one.
63-
/// Otherwise, return an error.
63+
/// Otherwise, returns an error.
6464
pub fn compile_contract_in_prepared_db<'db>(
6565
db: &'db dyn Database,
6666
contract_path: Option<&str>,
@@ -99,7 +99,7 @@ pub fn compile_contract_in_prepared_db<'db>(
9999
Ok(compile_prepared_db(db, &[contract], compiler_config)?.into_iter().exactly_one()?)
100100
}
101101

102-
/// Runs Starknet contracts compiler.
102+
/// Runs Starknet contract compiler.
103103
///
104104
/// # Arguments
105105
/// * `db` - Preloaded compilation database.
@@ -121,11 +121,11 @@ pub fn compile_prepared_db<'db>(
121121
})
122122
}
123123

124-
/// Compile declared Starknet contract.
124+
/// Compile the declared Starknet contract.
125125
///
126126
/// The `contract` value **must** come from `db`, for example as a result of calling
127-
/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked by caller
128-
/// of this function.
127+
/// [`find_contracts`]. Does not check diagnostics, it is expected that they are checked
128+
/// by the caller of this function.
129129
fn compile_contract_with_prepared_and_checked_db<'db>(
130130
db: &'db dyn Database,
131131
contract: &ContractDeclaration<'db>,
@@ -236,7 +236,7 @@ fn get_entry_points<'db>(
236236
Ok(entry_points)
237237
}
238238

239-
/// Compile Starknet crate (or specific contract in the crate).
239+
/// Compile a Starknet crate (or specific contract in the crate).
240240
pub fn starknet_compile(
241241
crate_path: PathBuf,
242242
contract_path: Option<String>,

0 commit comments

Comments
 (0)