Skip to content

Commit f50d9a4

Browse files
cratiu222mattsse
andauthored
docs: fix typos (#202)
Hello I fixed several minor typos. --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent 5de3d53 commit f50d9a4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/artifacts/solc/src/remappings.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ fn find_remapping_candidates(
723723

724724
// need to find the actual next window in the event `open` is a lib dir
725725
let window_start = next_nested_window(open, current_dir);
726-
// finally, we need to merge, adjust candidates from the same level and opening window
726+
// finally, we need to merge, adjust candidates from the same level and open window
727727
if is_candidate
728728
|| candidates
729729
.iter()
@@ -771,8 +771,8 @@ fn dir_distance(root: &Path, current: &Path) -> usize {
771771
}
772772

773773
/// This finds the next window between `root` and `current`
774-
/// If `root` ends with a `lib` component then start join components from `current` until no valid
775-
/// window opener is found
774+
/// If `root` ends with a `lib` component then start joining components from `current` until no
775+
/// valid window opener is found
776776
fn next_nested_window(root: &Path, current: &Path) -> PathBuf {
777777
if !is_lib_dir(root) || root == current {
778778
return root.to_path_buf();

crates/compilers/src/artifact_output/configurable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ impl ExtraOutputValues {
546546
}
547547
}
548548

549-
/// Determines what to emit as additional file
549+
/// Determines what to emit as an additional file
550550
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
551551
pub struct ExtraOutputFiles {
552552
pub abi: bool,

crates/compilers/src/artifact_output/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl<T> Artifacts<T> {
377377
})
378378
}
379379

380-
/// Finds the artifact with matching path and name
380+
/// Finds the artifact with a matching path and name
381381
pub fn find(&self, contract_path: &Path, contract_name: &str) -> Option<&T> {
382382
self.0.iter().filter(|(path, _)| path.as_path() == contract_path).find_map(
383383
|(_file, contracts)| {

0 commit comments

Comments
 (0)