Skip to content

Commit 1a885c6

Browse files
authored
several typo fixes and enable codespell action. (#345)
* several typo fixes and enable codespell action. Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com> * address review comment, "re-use" should be "reuse". Signed-off-by: Tomoya.Fujita <tomoya.fujita825@gmail.com> --------- Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com> Signed-off-by: Tomoya.Fujita <tomoya.fujita825@gmail.com>
1 parent 515ba67 commit 1a885c6

6 files changed

Lines changed: 28 additions & 5 deletions

File tree

.codespell-ignore-words.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Words for codespell to ignore (one lowercase word per line).
2+
# Entries are case-insensitive: `wit` covers both `wit` and `WIT`.
3+
# Used by .github/workflows/codespell.yml.
4+
5+
wit

.github/workflows/codespell.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: codespell
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
codespell:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
14+
- name: codespell
15+
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
16+
with:
17+
ignore_words_file: .codespell-ignore-words.txt
18+
skip: '*.lock'

component-model/examples/tutorial/adder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mod bindings {
1212
path: "wit/adder/world.wit",
1313
});
1414

15-
// In the lines below we use the generated `export!()` macro re-use and
15+
// In the lines below we use the generated `export!()` macro reuse and
1616
use super::AdderComponent;
1717
export!(AdderComponent);
1818
}

component-model/src/design/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ of one or many traditional ("core") WebAssembly modules and sub-components,
3939
composed together via their imports and exports.
4040
Two modules or components can be composed if the
4141
imports of one are satisfied by the exports of another.
42-
Composition can be repeated arbitarily, composing a
42+
Composition can be repeated arbitrarily, composing a
4343
single component out of many interlocking modules and components.
4444
[Interfaces](./interfaces.md) enable checking that
4545
a particular composition makes sense.
@@ -54,7 +54,7 @@ the component internally defines the code to implement the world.
5454

5555
Two modules or components can be composed if the
5656
imports of one are satisfied by the exports of another.
57-
Composition can be repeated arbitarily, composing a
57+
Composition can be repeated arbitrarily, composing a
5858
single component out of many interlocking modules and components.
5959
[Interfaces](./interfaces.md) enable checking that
6060
a particular composition makes sense.

component-model/src/language-support/building-a-simple-component/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Additionally, install the `wasm-tools` CLI tool from the [wasm-tools repository]
1818
> [!WARNING]
1919
> `wit-bindgen-go` comes with its own `wasm-tools` vendored version, but tinygo still requires you to install it.
2020
> Even if unlikely, this could lead to version mismatch when using older versions of `wasm-tools`.
21-
> Please make sure to keep your local `wasm-tools` udpated, should you encounter any issues.
21+
> Please make sure to keep your local `wasm-tools` updated, should you encounter any issues.
2222
>
2323
> If using the Rust toolchain to install `wasm-tools`, it can be installed like so:
2424
> `cargo install --locked wasm-tools@1.235.0 --force`

component-model/src/language-support/building-a-simple-component/other-languages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Other Languages with Component Model Support
22

3-
This guide is a work in progress and does not example for all langauge toolchains
3+
This guide is a work in progress and does not example for all language toolchains
44
with WebAssembly component support.
55

66
As more languages continue to add support for the component model, we welcome

0 commit comments

Comments
 (0)