Skip to content

Commit

Permalink
Rollup merge of rust-lang#55328 - raphlinus:copysign_typo, r=joshtrip…
Browse files Browse the repository at this point in the history
…lett

Fix doc for new copysign functions

Thanks to \@LukasKalbertodt for catching this. Addresses a comment raised in rust-lang#55169 after it was merged.
  • Loading branch information
kennytm committed Oct 25, 2018
2 parents d307d8a + 538f65e commit 8419761
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/libstd/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ impl f32 {
}
}

/// Returns a number composed of the magnitude of one number and the sign of
/// another.
/// Returns a number composed of the magnitude of `self` and the sign of
/// `y`.
///
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
/// equal to `-y`. If `self` is a `NAN`, then a `NAN` with the sign of `y`
/// is returned.
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
/// `y` is returned.
///
/// # Examples
///
Expand Down
8 changes: 4 additions & 4 deletions src/libstd/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ impl f64 {
}
}

/// Returns a number composed of the magnitude of one number and the sign of
/// another.
/// Returns a number composed of the magnitude of `self` and the sign of
/// `y`.
///
/// Equal to `self` if the sign of `self` and `y` are the same, otherwise
/// equal to `-y`. If `self` is a `NAN`, then a `NAN` with the sign of `y`
/// is returned.
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
/// `y` is returned.
///
/// # Examples
///
Expand Down

0 comments on commit 8419761

Please sign in to comment.