Skip to content

Commit cc5ea50

Browse files
authored
Comment changes (#77)
* comment typos * error comment: another approach I wasn't able to parse the error comment. Could just be me.
1 parent 324be89 commit cc5ea50

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

imports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ wasi-clocks API to the list.</p>
8484
<p>This function does not return a <code>result</code>; polling in itself does not
8585
do any I/O so it doesn't fail. If any of the I/O sources identified by
8686
the pollables has an error, it is indicated by marking the source as
87-
being reaedy for I/O.</p>
87+
being ready for I/O.</p>
8888
<h5>Params</h5>
8989
<ul>
9090
<li><a name="poll.in"><code>in</code></a>: list&lt;borrow&lt;<a href="#pollable"><a href="#pollable"><code>pollable</code></a></a>&gt;&gt;</li>

wit/error.wit

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ interface error {
1111
/// `wasi:io/streams/stream-error` type.
1212
///
1313
/// To provide more specific error information, other interfaces may
14-
/// provide functions to further "downcast" this error into more specific
15-
/// error information. For example, `error`s returned in streams derived
16-
/// from filesystem types to be described using the filesystem's own
17-
/// error-code type, using the function
18-
/// `wasi:filesystem/types/filesystem-error-code`, which takes a parameter
19-
/// `borrow<error>` and returns
20-
/// `option<wasi:filesystem/types/error-code>`.
14+
/// offer functions to "downcast" this error into more specific types. For example,
15+
/// errors returned from streams derived from filesystem types can be described using
16+
/// the filesystem's own error-code type. This is done using the function
17+
/// `wasi:filesystem/types/filesystem-error-code`, which takes a `borrow<error>`
18+
/// parameter and returns an `option<wasi:filesystem/types/error-code>`.
2119
///
2220
/// The set of functions which can "downcast" an `error` into a more
2321
/// concrete type is open.

wit/poll.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ interface poll {
3636
/// This function does not return a `result`; polling in itself does not
3737
/// do any I/O so it doesn't fail. If any of the I/O sources identified by
3838
/// the pollables has an error, it is indicated by marking the source as
39-
/// being reaedy for I/O.
39+
/// being ready for I/O.
4040
poll: func(in: list<borrow<pollable>>) -> list<u32>;
4141
}

0 commit comments

Comments
 (0)