diff --git a/README.md b/README.md index 999de2a..4dd4464 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ types, `input-stream`, and `output-stream`, which support `read` and ### Non-goals - Support for async. That will be addressed in the component-model async - design, where we can have the benefit of tigher integration with language + design, where we can have the benefit of tighter integration with language bindings. - Bidirectional streams. diff --git a/imports.md b/imports.md index dd0c4f2..01969c5 100644 --- a/imports.md +++ b/imports.md @@ -320,7 +320,7 @@ and stream is ready for writing again.
[method]output-stream.subscribe: func
Create a pollable
which will resolve once the output-stream
-is ready for more writing, or an error has occured. When this
+is ready for more writing, or an error has occurred. When this
pollable is ready, check-write
will return ok(n)
with n>0, or an
error.
If the stream is closed, this pollable is always ready immediately.
@@ -383,7 +383,7 @@ let _ = this.check-write(); // eliding error handling[method]output-stream.splice: func
Read from one stream and write to another.
-The behavior of splice is equivelant to:
+The behavior of splice is equivalent to:
check-write
on the output-stream
read
on the input-stream
with the smaller of the
diff --git a/wit/streams.wit b/wit/streams.wit
index a57f204..c938362 100644
--- a/wit/streams.wit
+++ b/wit/streams.wit
@@ -192,7 +192,7 @@ interface streams {
blocking-flush: func() -> result<_, stream-error>;
/// Create a `pollable` which will resolve once the output-stream
- /// is ready for more writing, or an error has occured. When this
+ /// is ready for more writing, or an error has occurred. When this
/// pollable is ready, `check-write` will return `ok(n)` with n>0, or an
/// error.
///
@@ -247,7 +247,7 @@ interface streams {
/// Read from one stream and write to another.
///
- /// The behavior of splice is equivelant to:
+ /// The behavior of splice is equivalent to:
/// 1. calling `check-write` on the `output-stream`
/// 2. calling `read` on the `input-stream` with the smaller of the
/// `check-write` permitted length and the `len` provided to `splice`