Skip to content

Commit cba9d3e

Browse files
authored
fix: Replace instant with datetime in wit-example.md (#302)
I would imagine what happened here is that what is currently defined as datetime used to be called instant. It looks like it got renamed in some places, but not everywhere. This patch tries to take care of that. Apologies if I'm messing something up, this is my first pull request ever in this project.
1 parent bfd59e8 commit cba9d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

component-model/src/design/wit-example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ an unsigned 32-bit integer.
7979
The following declares a function named `now`:
8080

8181
```wit
82-
now: func() -> instant;
82+
now: func() -> datetime;
8383
```
8484

8585
The empty parentheses `()` indicate that the function has no arguments.
8686
The return type is the type after the final arrow (`->`),
87-
which is `instant`.
88-
Putting it together: `now()` is a nullary function that returns an instant.
87+
which is `datetime`.
88+
Putting it together: `now()` is a nullary function that returns a datetime.
8989

9090
### Summing up
9191

0 commit comments

Comments
 (0)