Skip to content

Commit 81e0666

Browse files
committed
stdio: Fix error-code references
1 parent 924181b commit 81e0666

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

wit-0.3.0-draft/stdio.wit

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@since(version = 0.3.0-rc-2025-08-15)
2-
interface stdio {
2+
interface types {
33
@since(version = 0.3.0-rc-2025-08-15)
44
enum error-code {
55
/// Input/output error
@@ -13,6 +13,8 @@ interface stdio {
1313

1414
@since(version = 0.3.0-rc-2025-08-15)
1515
interface stdin {
16+
use types.{error-code};
17+
1618
/// Return a stream for reading from stdin.
1719
///
1820
/// This function returns a stream which provides data read from stdin,
@@ -32,6 +34,8 @@ interface stdin {
3234

3335
@since(version = 0.3.0-rc-2025-08-15)
3436
interface stdout {
37+
use types.{error-code};
38+
3539
/// Write the given stream to stdout.
3640
///
3741
/// If the stream's writable end is dropped this function will either return
@@ -46,6 +50,8 @@ interface stdout {
4650

4751
@since(version = 0.3.0-rc-2025-08-15)
4852
interface stderr {
53+
use types.{error-code};
54+
4955
/// Write the given stream to stderr.
5056
///
5157
/// If the stream's writable end is dropped this function will either return

0 commit comments

Comments
 (0)