Skip to content

Commit

Permalink
docs: fix typos (#202)
Browse files Browse the repository at this point in the history
Hello
I fixed several minor typos.

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
cratiu222 and mattsse authored Sep 21, 2024
1 parent 5de3d53 commit f50d9a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/artifacts/solc/src/remappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/artifact_output/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/artifact_output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl<T> Artifacts<T> {
})
}

/// 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)| {
Expand Down

0 comments on commit f50d9a4

Please sign in to comment.