diff --git a/imports.md b/imports.md index 8a884a3..071128d 100644 --- a/imports.md +++ b/imports.md @@ -16,13 +16,13 @@

The only method provided by this resource is to-debug-string, which provides some human-readable information about the error.

In the wasi:io package, this resource is returned through the -wasi:io/streams/stream-error type.

+wasi:io/streams.stream-error type.

To provide more specific error information, other interfaces may offer functions to "downcast" this error into more specific types. For example, errors returned from streams derived from filesystem types can be described using the filesystem's own error-code type. This is done using the function -wasi:filesystem/types/filesystem-error-code, which takes a borrow<error> -parameter and returns an option<wasi:filesystem/types/error-code>.

+wasi:filesystem/types.filesystem-error-code, which takes a borrow<error> +parameter and returns an option<wasi:filesystem/types.error-code>.

The set of functions which can "downcast" an error into a more concrete type is open.

Functions

@@ -104,10 +104,10 @@ when it does, they are expected to subsume this API.

type error

error

-

type pollable

-

pollable

+#### `type pollable` +[`pollable`](#pollable)

-

variant stream-error

+#### `variant stream-error`

An error for input-stream and output-stream operations.

Variant Cases