From 684de0d6fef708cae08214fef9643dd9ec7296e1 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sun, 15 Dec 2024 11:20:39 +0100 Subject: [PATCH] Fix Wasm `f*_sqrt()` doc --- crates/core_arch/src/wasm32/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core_arch/src/wasm32/mod.rs b/crates/core_arch/src/wasm32/mod.rs index bb023623b5..e6d79ea1ef 100644 --- a/crates/core_arch/src/wasm32/mod.rs +++ b/crates/core_arch/src/wasm32/mod.rs @@ -94,7 +94,7 @@ pub fn f32_nearest(a: f32) -> f32 { /// This method is useful when targeting `no_std` and is equivalent to [`std::f32::sqrt()`]. /// /// [`std::f32::sqrt()`]: https://doc.rust-lang.org/std/primitive.f32.html#method.sqrt -/// [`f32.nearest`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric +/// [`f32.sqrt`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric #[cfg_attr(test, assert_instr(f32.sqrt))] #[inline] #[must_use = "method returns a new number and does not mutate the original value"] @@ -165,7 +165,7 @@ pub fn f64_nearest(a: f64) -> f64 { /// This method is useful when targeting `no_std` and is equivalent to [`std::f64::sqrt()`]. /// /// [`std::f64::sqrt()`]: https://doc.rust-lang.org/std/primitive.f64.html#method.sqrt -/// [`f64.nearest`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric +/// [`f64.sqrt`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric #[cfg_attr(test, assert_instr(f64.sqrt))] #[inline] #[must_use = "method returns a new number and does not mutate the original value"]