Skip to content

Commit 684de0d

Browse files
daxpeddaAmanieu
authored andcommitted
Fix Wasm f*_sqrt() doc
1 parent 0602f64 commit 684de0d

File tree

1 file changed

+2
-2
lines changed
  • crates/core_arch/src/wasm32

1 file changed

+2
-2
lines changed

Diff for: crates/core_arch/src/wasm32/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn f32_nearest(a: f32) -> f32 {
9494
/// This method is useful when targeting `no_std` and is equivalent to [`std::f32::sqrt()`].
9595
///
9696
/// [`std::f32::sqrt()`]: https://doc.rust-lang.org/std/primitive.f32.html#method.sqrt
97-
/// [`f32.nearest`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric
97+
/// [`f32.sqrt`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric
9898
#[cfg_attr(test, assert_instr(f32.sqrt))]
9999
#[inline]
100100
#[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 {
165165
/// This method is useful when targeting `no_std` and is equivalent to [`std::f64::sqrt()`].
166166
///
167167
/// [`std::f64::sqrt()`]: https://doc.rust-lang.org/std/primitive.f64.html#method.sqrt
168-
/// [`f64.nearest`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric
168+
/// [`f64.sqrt`]: https://webassembly.github.io/spec/core/syntax/instructions.html#syntax-instr-numeric
169169
#[cfg_attr(test, assert_instr(f64.sqrt))]
170170
#[inline]
171171
#[must_use = "method returns a new number and does not mutate the original value"]

0 commit comments

Comments
 (0)