Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix spelling issues #240

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/compilers/src/compile/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
//! provided to solc.
//! For every file the cache file contains a dedicated [cache entry](crate::cache::CacheEntry),
//! which represents the state of the file. A solidity file can contain several contracts, for every
//! contract a separate [artifact](crate::Artifact) is emitted. Therefor the entry also tracks all
//! contract a separate [artifact](crate::Artifact) is emitted. Therefore the entry also tracks all
//! artifacts emitted by a file. A solidity file can also be compiled with several solc versions.
//!
//! For example in `A(<=0.8.10) imports C(>0.4.0)` and
Expand Down
6 changes: 3 additions & 3 deletions crates/compilers/src/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Visitor for ReferencesCollector {
type Updates = HashMap<PathBuf, HashSet<(usize, usize, String)>>;

pub struct FlatteningResult<'a> {
/// Updated source in the order they shoud be written to the output file.
/// Updated source in the order they should be written to the output file.
sources: Vec<String>,
/// Pragmas that should be present in the target file.
pragmas: Vec<String>,
Expand Down Expand Up @@ -361,7 +361,7 @@ impl Flattener {
///
/// This approach works by firstly collecting all IDs of import directives, and then looks for
/// any references of them. Once the reference is found, it's full length is getting removed
/// from source + 1 charater ('.')
/// from source + 1 character ('.')
///
/// This should work correctly for vast majority of cases, however there are situations for
/// which such approach won't work, most of which are related to code being formatted in an
Expand Down Expand Up @@ -750,7 +750,7 @@ impl Flattener {
.collect()
}

/// Removes all license identifiers from all sources. Returns licesnse identifier from target
/// Removes all license identifiers from all sources. Returns license identifier from target
/// file, if any.
fn process_licenses(&self, updates: &mut Updates) -> Option<&str> {
let mut target_license = None;
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub struct Project<
/// Additional settings for cases when default compiler settings are not enough to cover all
/// possible restrictions.
pub additional_settings: BTreeMap<String, C::Settings>,
/// Mapping from file path to requrements on settings to compile it.
/// Mapping from file path to requirements on settings to compile it.
///
/// This file will only be included into compiler inputs with profiles which satisfy the
/// restrictions.
Expand Down
Loading