Skip to content

Commit 348a46f

Browse files
committed
Remove double negation from sqrt's doc comment
1 parent 9a778bc commit 348a46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ pub trait Float: Signed + Primitive {
15021502

15031503
/// Take the square root of a number.
15041504
///
1505-
/// Returns NaN if `self` is not a non-negative number.
1505+
/// Returns NaN if `self` is a negative number.
15061506
fn sqrt(self) -> Self;
15071507
/// Take the reciprocal (inverse) square root of a number, `1/sqrt(x)`.
15081508
fn rsqrt(self) -> Self;

0 commit comments

Comments
 (0)