Skip to content

Commit 6b44ff8

Browse files
authored
Fix typos in comments and variable names across solc-related modules (#286)
- Fixed typos in comments: - "identfiers" → "identifiers" in `output_selection.rs` - "blocking_intsall" → "blocking_install" in `compiler.rs` - "depeending" → "depending" in `compiler.rs` - Corrected a variable name typo: - "output_selecttion_specific" → "output_selection_specific` in `output_selection.rs` tests
1 parent 24dfb58 commit 6b44ff8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/artifacts/solc/src/output_selection.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl ContractOutputSelection {
201201
/// that solc emits.
202202
///
203203
/// These correspond to the fields in `CompactBytecode`, `CompactDeployedBytecode`, ABI, and
204-
/// method identfiers.
204+
/// method identifiers.
205205
pub fn basic() -> Vec<Self> {
206206
// We don't include all the `bytecode` fields because `generatedSources` is a massive JSON
207207
// object and is not used by Foundry.
@@ -610,7 +610,7 @@ mod tests {
610610
assert!(!output_selection.is_subset_of(&output_selection_empty));
611611
assert!(!output_selection_abi.is_subset_of(&output_selection_empty));
612612

613-
let output_selecttion_specific = OutputSelection::from(BTreeMap::from([(
613+
let output_selection_specific = OutputSelection::from(BTreeMap::from([(
614614
"Contract.sol".to_string(),
615615
BTreeMap::from([(
616616
"Contract".to_string(),
@@ -622,7 +622,7 @@ mod tests {
622622
)]),
623623
)]));
624624

625-
assert!(!output_selecttion_specific.is_subset_of(&output_selection));
625+
assert!(!output_selection_specific.is_subset_of(&output_selection));
626626
}
627627

628628
#[test]

crates/compilers/src/compilers/solc/compiler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl Solc {
293293

294294
trace!("blocking installing solc version \"{}\"", version);
295295
crate::report::solc_installation_start(&version);
296-
// The async version `svm::install` is used instead of `svm::blocking_intsall`
296+
// The async version `svm::install` is used instead of `svm::blocking_install`
297297
// because the underlying `reqwest::blocking::Client` does not behave well
298298
// inside of a Tokio runtime. See: https://github.com/seanmonstar/reqwest/issues/1017
299299
match RuntimeOrHandle::new().block_on(svm::install(&version)) {
@@ -475,7 +475,7 @@ impl Solc {
475475
move |err| SolcError::io(err, &self.solc)
476476
}
477477

478-
/// Configures [Command] object depeending on settings and solc version used.
478+
/// Configures [Command] object depending on settings and solc version used.
479479
/// Some features are only supported by newer versions of solc, so we have to disable them for
480480
/// older ones.
481481
pub fn configure_cmd(&self) -> Command {

0 commit comments

Comments
 (0)