Skip to content

Commit f74c893

Browse files
authored
Fix Typos in Comments (#123)
1 parent 0f09bfc commit f74c893

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/build/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn remove_compile_asset(package: &packages::Package, source_file: &str, extensio
5151

5252
pub fn remove_compile_assets(package: &packages::Package, source_file: &str) {
5353
// optimization
54-
// only issue cmti if htere is an interfacce file
54+
// only issue cmti if there is an interfacce file
5555
for extension in &["cmj", "cmi", "cmt", "cmti"] {
5656
remove_compile_asset(package, source_file, extension);
5757
}

src/build/compile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ pub fn compile(
4646
// for sure clean modules -- after checking the hash of the cmi
4747
let mut clean_modules = AHashSet::<String>::new();
4848

49-
// TODO: calculate the real dirty modules from the orginal dirty modules in each iteration
49+
// TODO: calculate the real dirty modules from the original dirty modules in each iteration
5050
// taken into account the modules that we know are clean, so they don't propagate through the
5151
// deps graph
52-
// create a hashset of all clean modules form the file-hashes
52+
// create a hashset of all clean modules from the file-hashes
5353
let mut loop_count = 0;
5454
let mut files_total_count = compiled_modules.len();
5555
let mut files_current_loop_count;

src/build/packages.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ pub fn read_folders(
180180
/// Given a projects' root folder and a `bsconfig::Source`, this recursively creates all the
181181
/// sources in a flat list. In the process, it removes the children, as they are being resolved
182182
/// because of the recursiveness. So you get a flat list of files back, retaining the type_ and
183-
/// wether it needs to recurse into all structures
183+
/// whether it needs to recurse into all structures
184184
fn get_source_dirs(source: bsconfig::Source, sub_path: Option<PathBuf>) -> AHashSet<bsconfig::PackageSource> {
185185
let mut source_folders: AHashSet<bsconfig::PackageSource> = AHashSet::new();
186186

@@ -276,7 +276,7 @@ pub fn read_dependency(
276276

277277
/// # Make Package
278278
279-
/// Given a bsconfig, reqursively finds all dependencies.
279+
/// Given a bsconfig, recursively finds all dependencies.
280280
/// 1. It starts with registering dependencies and
281281
/// prevents the operation for the ones which are already
282282
/// registerd for the parent packages. Especially relevant for peerDependencies.
@@ -430,7 +430,7 @@ fn read_packages(project_root: &str, workspace_root: Option<String>) -> AHashMap
430430
/// data from the config and pushes it forwards. Another thing is the 'type_', some files / folders
431431
/// can be marked with the type 'dev'. Which means that they may not be around in the distributed
432432
/// NPM package. The file reader allows for this, just warns when this happens.
433-
/// TODO -> Check wether we actually need the `fs::Metadata`
433+
/// TODO -> Check whether we actually need the `fs::Metadata`
434434
pub fn get_source_files(
435435
package_dir: &Path,
436436
filter: &Option<regex::Regex>,

0 commit comments

Comments
 (0)