File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/sidevm/host-runtime/src/env Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ macro_rules! wasi_try {
37
37
}
38
38
39
39
/// Like the `try!` macro or `?` syntax: returns the value if the computation
40
- /// succeeded or returns the error value. Results are wrapped in an Ok
40
+ /// succeeded or returns the error value. Results are wrapped as an `Ok(errno)`.
41
41
macro_rules! wasi_try_ok {
42
42
( $expr: expr) => { {
43
43
let res: Result <_, Errno > = $expr;
@@ -57,7 +57,7 @@ macro_rules! wasi_try_mem_ok {
57
57
} } ;
58
58
}
59
59
60
- /// Like `wasi_try` but converts a `MemoryAccessError` to a `wasi:: Errno` .
60
+ /// Like `wasi_try` but allow the inner block to use `?` syntax on a Result<_, Errno> .
61
61
macro_rules! wasi_try_block_ok {
62
62
( $expr: expr) => { {
63
63
wasi_try_ok!( || -> Result <_, Errno > { Ok ( $expr) } ( ) )
You can’t perform that action at this time.
0 commit comments