diff --git a/wit-0.3.0-draft/types.wit b/wit-0.3.0-draft/types.wit index 31eb62a..3cbbe7b 100644 --- a/wit-0.3.0-draft/types.wit +++ b/wit-0.3.0-draft/types.wit @@ -273,10 +273,10 @@ interface types { /// The returned future resolves to success if body is closed. %stream: func() -> result, future>>>; - /// Takes ownership of `body`, and returns an unresolved optional `trailers`. + /// Takes ownership of `body`, and returns an unresolved optional `trailers` result. /// /// This function will trap if a `stream` child is still alive. - finish: static func(this: body) -> future>; + finish: static func(this: body) -> future, error-code>>; } /// Represents an HTTP Request.