Skip to content

Commit 37317ea

Browse files
committed
wasi-threads: fix import name
As @TerrorJack pointed out in bytecodealliance#5484, that PR implements an older name--`thread_spawn`. This change uses the now-official name from the specification--`thread-spawn`.
1 parent 1210940 commit 37317ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wasi-threads/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn add_to_linker<T: Clone + Send + 'static>(
112112
) -> anyhow::Result<SharedMemory> {
113113
linker.func_wrap(
114114
"wasi",
115-
"thread_spawn",
115+
"thread-spawn",
116116
move |mut caller: Caller<'_, T>, start_arg: i32| -> i32 {
117117
log::trace!("new thread requested via `wasi::thread_spawn` call");
118118
let host = caller.data().clone();

0 commit comments

Comments
 (0)