Skip to content

Commit f262ac9

Browse files
committed
sidevm: Update comment
1 parent 9b3ee0d commit f262ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sidevm/host-runtime/src/env/wasi_env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro_rules! wasi_try {
3737
}
3838

3939
/// 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)`.
4141
macro_rules! wasi_try_ok {
4242
($expr:expr) => {{
4343
let res: Result<_, Errno> = $expr;
@@ -57,7 +57,7 @@ macro_rules! wasi_try_mem_ok {
5757
}};
5858
}
5959

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>.
6161
macro_rules! wasi_try_block_ok {
6262
($expr:expr) => {{
6363
wasi_try_ok!(|| -> Result<_, Errno> { Ok($expr) }())

0 commit comments

Comments
 (0)