Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions component-model/src/design/wit-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ an unsigned 32-bit integer.
The following declares a function named `now`:

```wit
now: func() -> instant;
now: func() -> datetime;
```

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

### Summing up

Expand Down