Commit ce88f16
authored
doc: fix off-by-one in
## Summary
- Fix off-by-one line reference in two `error-handling` docs that embed
an empty line instead of the `TodoError` type definition.
- `doc/md/examples/todo-error.mo` line 60 is blank; line 59 holds the
`public type TodoError = …` line. Embeds now point at L59.
- Same fix applied to the legacy `doc/md/old/writing-motoko/errors.md`
so historical doc-site renders also display the type.
Fixes #6077.
## Test plan
- [ ] Render `doc/md/fundamentals/9-error-handling.md` (or the
corresponding section of the dfinity/developer-docs sync) and confirm
the `Result`-introduction code block now shows `public type TodoError =
{ #notFound; #alreadyDone : Time };`.
- [ ] Same check for `doc/md/old/writing-motoko/errors.md` (legacy
path).
- [ ] No CI tests cover docusaurus file-embed expansion, so verification
is visual.
🤖 Generated with [Claude Code](https://claude.com/claude-code)9-error-handling.md file-embeds (#6078)1 parent 0324776 commit ce88f16
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments