diff --git a/library/panic_unwind/src/lib.rs b/library/panic_unwind/src/lib.rs index 4815249f7d5..e5753ccae2d 100644 --- a/library/panic_unwind/src/lib.rs +++ b/library/panic_unwind/src/lib.rs @@ -56,8 +56,7 @@ cfg_if::cfg_if! { mod real_imp; } else { // Targets that don't support unwinding. - // - arch=wasm32 - // - arch=wasm64 + // - family=wasm // - os=none ("bare metal" targets) // - os=uefi // - os=espidf diff --git a/library/std/src/sys/wasm/alloc.rs b/library/std/src/sys/wasm/alloc.rs index bf5dc0273c0..3223e894102 100644 --- a/library/std/src/sys/wasm/alloc.rs +++ b/library/std/src/sys/wasm/alloc.rs @@ -1,4 +1,4 @@ -//! This is an implementation of a global allocator on the wasm platform when +//! This is an implementation of a global allocator on wasm targets when //! emscripten is not in use. In that situation there's no actual runtime for us //! to lean on for allocation, so instead we provide our own! //! diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index da297c92017..f6898d283fc 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -479,7 +479,7 @@ mod lazy { } } -/// On some platforms like wasm there's no threads, so no need to generate +/// On some targets like wasm there's no threads, so no need to generate /// thread locals and we can instead just use plain statics! #[doc(hidden)] #[cfg(all(target_family = "wasm", not(target_feature = "atomics")))]