summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorToan Nguyen <davidnguyen1501@gmail.com>2020-10-23 18:19:37 +0700
committerGitHub <noreply@github.com>2020-10-23 13:19:37 +0200
commit29e05bb014015085615f648a31f180ed9dd49e5a (patch)
tree6f3d292e27bcce984e0eb4828e030b2b877ee364 /core
parentab898556a490d78d93e806ea3ee31147117102e3 (diff)
fix: typos in cli and core (#8082)
Diffstat (limited to 'core')
-rw-r--r--core/core_test.js2
-rw-r--r--core/modules.rs2
-rw-r--r--core/normalize_path.rs2
-rw-r--r--core/ops.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/core_test.js b/core/core_test.js
index 7821f93a6..28bc7d2bf 100644
--- a/core/core_test.js
+++ b/core/core_test.js
@@ -28,7 +28,7 @@ function main() {
const h = q.head();
assert(h > 0);
- // This record's len is not divisble by
+ // This record's len is not divisible by
// 4 so after pushing it to the queue,
// next record offset should be aligned to 4.
let r = new Uint8Array([1, 2, 3, 4, 5]);
diff --git a/core/modules.rs b/core/modules.rs
index e12699ca9..f1f540b68 100644
--- a/core/modules.rs
+++ b/core/modules.rs
@@ -387,7 +387,7 @@ impl ModuleNameMap {
}
}
- /// Insert a name assocated module id.
+ /// Insert a name associated module id.
pub fn insert(&mut self, name: String, id: ModuleId) {
self.inner.insert(name, SymbolicModule::Mod(id));
}
diff --git a/core/normalize_path.rs b/core/normalize_path.rs
index 0124aedc7..e444af991 100644
--- a/core/normalize_path.rs
+++ b/core/normalize_path.rs
@@ -4,7 +4,7 @@ use std::path::Component;
use std::path::Path;
use std::path::PathBuf;
-/// Normalize all itermediate components of the path (ie. remove "./" and "../" components).
+/// Normalize all intermediate components of the path (ie. remove "./" and "../" components).
/// Similar to `fs::canonicalize()` but doesn't resolve symlinks.
///
/// Taken from Cargo
diff --git a/core/ops.rs b/core/ops.rs
index b7507156c..3351b6a5b 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -221,7 +221,7 @@ fn json_serialize_op_result(
}
/// Return map of resources with id as key
-/// and string representaion as value.
+/// and string representation as value.
///
/// This op must be wrapped in `json_op_sync`.
pub fn op_resources(