File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 82
82
//! provided to solc.
83
83
//! For every file the cache file contains a dedicated [cache entry](crate::cache::CacheEntry),
84
84
//! 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
86
86
//! artifacts emitted by a file. A solidity file can also be compiled with several solc versions.
87
87
//!
88
88
//! For example in `A(<=0.8.10) imports C(>0.4.0)` and
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl Visitor for ReferencesCollector {
115
115
type Updates = HashMap < PathBuf , HashSet < ( usize , usize , String ) > > ;
116
116
117
117
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.
119
119
sources : Vec < String > ,
120
120
/// Pragmas that should be present in the target file.
121
121
pragmas : Vec < String > ,
@@ -361,7 +361,7 @@ impl Flattener {
361
361
///
362
362
/// This approach works by firstly collecting all IDs of import directives, and then looks for
363
363
/// 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 ('.')
365
365
///
366
366
/// This should work correctly for vast majority of cases, however there are situations for
367
367
/// which such approach won't work, most of which are related to code being formatted in an
@@ -750,7 +750,7 @@ impl Flattener {
750
750
. collect ( )
751
751
}
752
752
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
754
754
/// file, if any.
755
755
fn process_licenses ( & self , updates : & mut Updates ) -> Option < & str > {
756
756
let mut target_license = None ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ pub struct Project<
79
79
/// Additional settings for cases when default compiler settings are not enough to cover all
80
80
/// possible restrictions.
81
81
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.
83
83
///
84
84
/// This file will only be included into compiler inputs with profiles which satisfy the
85
85
/// restrictions.
You can’t perform that action at this time.
0 commit comments