Skip to content

Commit 54a25c8

Browse files
authoredJan 16, 2020
Rollup merge of rust-lang#68266 - Stromberg90:patch-2, r=Dylan-DPC
Changed docs for f32 and f64.
2 parents 97e3928 + d0db6d5 commit 54a25c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/libstd/f32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl f32 {
355355
return unsafe { intrinsics::powf32(self, n) };
356356
}
357357

358-
/// Takes the square root of a number.
358+
/// Returns the square root of a number.
359359
///
360360
/// Returns NaN if `self` is a negative number.
361361
///
@@ -564,7 +564,7 @@ impl f32 {
564564
unsafe { cmath::fdimf(self, other) }
565565
}
566566

567-
/// Takes the cubic root of a number.
567+
/// Returns the cubic root of a number.
568568
///
569569
/// # Examples
570570
///

‎src/libstd/f64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl f64 {
323323
unsafe { intrinsics::powf64(self, n) }
324324
}
325325

326-
/// Takes the square root of a number.
326+
/// Returns the square root of a number.
327327
///
328328
/// Returns NaN if `self` is a negative number.
329329
///
@@ -506,7 +506,7 @@ impl f64 {
506506
unsafe { cmath::fdim(self, other) }
507507
}
508508

509-
/// Takes the cubic root of a number.
509+
/// Returns the cubic root of a number.
510510
///
511511
/// # Examples
512512
///

0 commit comments

Comments
 (0)