From 81e066651e5d5193f85a789c592cf59967834041 Mon Sep 17 00:00:00 2001 From: Lann Martin Date: Tue, 16 Sep 2025 16:45:38 -0400 Subject: [PATCH] stdio: Fix error-code references --- wit-0.3.0-draft/stdio.wit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wit-0.3.0-draft/stdio.wit b/wit-0.3.0-draft/stdio.wit index c1bc8ac..5536cee 100644 --- a/wit-0.3.0-draft/stdio.wit +++ b/wit-0.3.0-draft/stdio.wit @@ -1,5 +1,5 @@ @since(version = 0.3.0-rc-2025-08-15) -interface stdio { +interface types { @since(version = 0.3.0-rc-2025-08-15) enum error-code { /// Input/output error @@ -13,6 +13,8 @@ interface stdio { @since(version = 0.3.0-rc-2025-08-15) interface stdin { + use types.{error-code}; + /// Return a stream for reading from stdin. /// /// This function returns a stream which provides data read from stdin, @@ -32,6 +34,8 @@ interface stdin { @since(version = 0.3.0-rc-2025-08-15) interface stdout { + use types.{error-code}; + /// Write the given stream to stdout. /// /// If the stream's writable end is dropped this function will either return @@ -46,6 +50,8 @@ interface stdout { @since(version = 0.3.0-rc-2025-08-15) interface stderr { + use types.{error-code}; + /// Write the given stream to stderr. /// /// If the stream's writable end is dropped this function will either return