From e320a030d4b20b4cd0d5c18490db2b899ee16417 Mon Sep 17 00:00:00 2001 From: og-syn <93359805+og-syn@users.noreply.github.com> Date: Fri, 15 Aug 2025 14:04:12 -0700 Subject: [PATCH] Replace instant with datetime in wit-example.md 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. --- component-model/src/design/wit-example.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/component-model/src/design/wit-example.md b/component-model/src/design/wit-example.md index 45298b36..847b8073 100644 --- a/component-model/src/design/wit-example.md +++ b/component-model/src/design/wit-example.md @@ -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