diff --git a/crates/artifacts/solc/src/remappings.rs b/crates/artifacts/solc/src/remappings.rs index 4b794e68c..8b107a0d0 100644 --- a/crates/artifacts/solc/src/remappings.rs +++ b/crates/artifacts/solc/src/remappings.rs @@ -723,7 +723,7 @@ fn find_remapping_candidates( // need to find the actual next window in the event `open` is a lib dir let window_start = next_nested_window(open, current_dir); - // finally, we need to merge, adjust candidates from the same level and opening window + // finally, we need to merge, adjust candidates from the same level and open window if is_candidate || candidates .iter() @@ -771,8 +771,8 @@ fn dir_distance(root: &Path, current: &Path) -> usize { } /// This finds the next window between `root` and `current` -/// If `root` ends with a `lib` component then start join components from `current` until no valid -/// window opener is found +/// If `root` ends with a `lib` component then start joining components from `current` until no +/// valid window opener is found fn next_nested_window(root: &Path, current: &Path) -> PathBuf { if !is_lib_dir(root) || root == current { return root.to_path_buf(); diff --git a/crates/compilers/src/artifact_output/configurable.rs b/crates/compilers/src/artifact_output/configurable.rs index cbd7173d7..47c16aed2 100644 --- a/crates/compilers/src/artifact_output/configurable.rs +++ b/crates/compilers/src/artifact_output/configurable.rs @@ -546,7 +546,7 @@ impl ExtraOutputValues { } } -/// Determines what to emit as additional file +/// Determines what to emit as an additional file #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] pub struct ExtraOutputFiles { pub abi: bool, diff --git a/crates/compilers/src/artifact_output/mod.rs b/crates/compilers/src/artifact_output/mod.rs index 3c7444a28..681cd45af 100644 --- a/crates/compilers/src/artifact_output/mod.rs +++ b/crates/compilers/src/artifact_output/mod.rs @@ -377,7 +377,7 @@ impl Artifacts { }) } - /// Finds the artifact with matching path and name + /// Finds the artifact with a matching path and name pub fn find(&self, contract_path: &Path, contract_name: &str) -> Option<&T> { self.0.iter().filter(|(path, _)| path.as_path() == contract_path).find_map( |(_file, contracts)| {