Skip to content

Commit

Permalink
chore: Remove repetitive words (#8741)
Browse files Browse the repository at this point in the history
Signed-off-by: one230six <723682061@qq.com>
  • Loading branch information
one230six authored Mar 14, 2024
1 parent 1ec92df commit bfb0c6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/swc/tests/deno-unit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ unitTest({
);
```

`unitTest` is is a wrapper function that enhances `Deno.test()` API in several
`unitTest` is a wrapper function that enhances `Deno.test()` API in several
ways:

- ability to conditionally skip tests using `UnitTestOptions.skip`
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_base/src/rename/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ where
// 3. Per-unit renaming
// 4. Top level renaming
//
// This is because the the top level map may contain a mapping which conflicts
// This is because the top level map may contain a mapping which conflicts
// with a map from one of the children.
//
// See https://github.com/swc-project/swc/pull/7615
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ fn test_remove_useless_ops2() {
test("Math.random(f() + g())", "f(),g();");
test("Math.random(f(),g(),h())", "f(),g(),h();");

// Calls to functions with unknown side-effects are are left.
// Calls to functions with unknown side-effects are left.
test_same("f();");
test_same("(function () { f(); })();");

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_estree_compat/src/babelify/decl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Babelify for ClassDecl {
let is_abstract = self.class.is_abstract;
// NOTE: The body field needs a bit of special handling because babel
// represents the body as a node, whereas swc represents it as a vector of
// statements. This means that swc does not have a span corresponding the the
// statements. This means that swc does not have a span corresponding the
// class body base node for babel. To solve this, we generate a new span
// starting from the end of the identifier to the end of the body.
// For example,
Expand Down

0 comments on commit bfb0c6e

Please sign in to comment.