Skip to content

Commit 40da1d8

Browse files
authored
Fix some error message typos (#13102)
Just copy/paste errors that weren't completely fixed, no otherwise major impact.
1 parent 22e81e9 commit 40da1d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ impl StoreOpaque {
23732373
let WriteState::GuestReady { ty, handle, .. } =
23742374
mem::replace(&mut transmit.write, WriteState::Open)
23752375
else {
2376-
bail_bug!("expected WriteState::HostReady")
2376+
bail_bug!("expected WriteState::GuestReady")
23772377
};
23782378
state.send_write_result(ty, id, handle, code)?;
23792379
Ok(())
@@ -2417,7 +2417,7 @@ impl StoreOpaque {
24172417
let ReadState::GuestReady { ty, handle, .. } =
24182418
mem::replace(&mut transmit.read, ReadState::Open)
24192419
else {
2420-
bail_bug!("expected ReadState::HostReady")
2420+
bail_bug!("expected ReadState::GuestReady")
24212421
};
24222422
state.send_read_result(ty, id, handle, code)?;
24232423
Ok(())

0 commit comments

Comments
 (0)