Skip to content

Commit a1fac79

Browse files
fix(lang/moonbit): fix numbering of steps
1 parent 7616e6a commit a1fac79

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

component-model/src/language-support/moonbit.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,23 @@ If you execute `moon check`, there will be a warning
148148
suggesting that file `gen/interface/docs/adder/add/stub.mbt` contains unfinished
149149
code, which is what we need to complete.
150150

151-
## 5. Implement the Component Logic
151+
## 4. Implement the Component Logic
152152

153153
Implement the `add` function in `gen/interface/docs/adder/add/stub.mbt`:
154154

155155
```rust
156156
{{#include ../../examples/tutorial/moonbit/adder/stub.mbt}}
157157
```
158158

159-
## 6. Configure the Build
159+
## 5. Configure the Build
160160

161161
Ensure your `gen/moon.pkg.json` is properly configured for WebAssembly target:
162162

163163
```json
164164
{{#include ../../examples/tutorial/moonbit/adder/moon.pkg.json}}
165165
```
166166

167-
## 7. Build the WebAssembly Component
167+
## 5. Build the WebAssembly Component
168168

169169
Build the MoonBit code to WebAssembly core module:
170170

@@ -202,7 +202,7 @@ package docs:adder@0.1.0 {
202202
}
203203
```
204204

205-
## 8. Testing the Component
205+
## 6. Testing the Component
206206

207207
### Using the Example Host
208208

@@ -281,7 +281,7 @@ used if you are generating the project as part of a larger project.
281281
By default, the exportation parts are generated under `gen`. You may use this
282282
option to specify another directory.
283283

284-
## 10. References and Further Reading
284+
## References and Further Reading
285285

286286
- [MoonBit Official Website](https://www.moonbitlang.com/)
287287
- [MoonBit Language Documentation](https://docs.moonbitlang.com/)

0 commit comments

Comments
 (0)