Skip to content

Commit 924181b

Browse files
committed
stdio: Tweak method names
1 parent 382be46 commit 924181b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wit-0.3.0-draft/stdio.wit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ interface stdin {
2727
/// Multiple streams may be active at the same time. The behavior of concurrent
2828
/// reads is implementation-specific.
2929
@since(version = 0.3.0-rc-2025-08-15)
30-
read-stdin: func() -> tuple<stream<u8>, future<result<_, error-code>>>;
30+
read-via-stream: func() -> tuple<stream<u8>, future<result<_, error-code>>>;
3131
}
3232

3333
@since(version = 0.3.0-rc-2025-08-15)
3434
interface stdout {
35-
/// Append from the given stream to stdout.
35+
/// Write the given stream to stdout.
3636
///
3737
/// If the stream's writable end is dropped this function will either return
3838
/// success once the entire contents of the stream have been written or an
@@ -41,12 +41,12 @@ interface stdout {
4141
/// Otherwise if there is an error the readable end of the stream will be
4242
/// dropped and this function will return an error-code.
4343
@since(version = 0.3.0-rc-2025-08-15)
44-
append-stdout: async func(data: stream<u8>) -> result<_, error-code>;
44+
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
4545
}
4646

4747
@since(version = 0.3.0-rc-2025-08-15)
4848
interface stderr {
49-
/// Append from the given stream to stderr.
49+
/// Write the given stream to stderr.
5050
///
5151
/// If the stream's writable end is dropped this function will either return
5252
/// success once the entire contents of the stream have been written or an
@@ -55,5 +55,5 @@ interface stderr {
5555
/// Otherwise if there is an error the readable end of the stream will be
5656
/// dropped and this function will return an error-code.
5757
@since(version = 0.3.0-rc-2025-08-15)
58-
append-stderr: async func(data: stream<u8>) -> result<_, error-code>;
58+
write-via-stream: async func(data: stream<u8>) -> result<_, error-code>;
5959
}

0 commit comments

Comments
 (0)