Skip to content

Commit 0c2f92c

Browse files
mattssecamcui
andauthored
chore: fix spelling issues (#248)
Signed-off-by: camcui <cuishua@sina.cn> Co-authored-by: camcui <cuishua@sina.cn>
1 parent 912fa49 commit 0c2f92c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/compilers/src/compile/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
//! provided to solc.
8383
//! For every file the cache file contains a dedicated [cache entry](crate::cache::CacheEntry),
8484
//! which represents the state of the file. A solidity file can contain several contracts, for every
85-
//! contract a separate [artifact](crate::Artifact) is emitted. Therefor the entry also tracks all
85+
//! contract a separate [artifact](crate::Artifact) is emitted. Therefore the entry also tracks all
8686
//! artifacts emitted by a file. A solidity file can also be compiled with several solc versions.
8787
//!
8888
//! For example in `A(<=0.8.10) imports C(>0.4.0)` and

crates/compilers/src/flatten.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl Visitor for ReferencesCollector {
115115
type Updates = HashMap<PathBuf, HashSet<(usize, usize, String)>>;
116116

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

753-
/// Removes all license identifiers from all sources. Returns licesnse identifier from target
753+
/// Removes all license identifiers from all sources. Returns license identifier from target
754754
/// file, if any.
755755
fn process_licenses(&self, updates: &mut Updates) -> Option<&str> {
756756
let mut target_license = None;

crates/compilers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub struct Project<
7979
/// Additional settings for cases when default compiler settings are not enough to cover all
8080
/// possible restrictions.
8181
pub additional_settings: BTreeMap<String, C::Settings>,
82-
/// Mapping from file path to requrements on settings to compile it.
82+
/// Mapping from file path to requirements on settings to compile it.
8383
///
8484
/// This file will only be included into compiler inputs with profiles which satisfy the
8585
/// restrictions.

0 commit comments

Comments
 (0)