Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afc2bcc

Browse files
authoredOct 1, 2019
Rollup merge of rust-lang#63416 - RalfJung:apfloat, r=eddyb
apfloat: improve doc comments r? @eddyb @nagisa
2 parents 702b45e + 5faae38 commit afc2bcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/librustc_apfloat/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,13 @@ pub trait Float
555555
fn ilogb(self) -> ExpInt;
556556

557557
/// Returns: self * 2<sup>exp</sup> for integral exponents.
558+
/// Equivalent to C standard library function `ldexp`.
558559
fn scalbn_r(self, exp: ExpInt, round: Round) -> Self;
559560
fn scalbn(self, exp: ExpInt) -> Self {
560561
self.scalbn_r(exp, Round::NearestTiesToEven)
561562
}
562563

563-
/// Equivalent of C standard library function.
564+
/// Equivalent to C standard library function with the same name.
564565
///
565566
/// While the C standard says exp is an unspecified value for infinity and nan,
566567
/// this returns INT_MAX for infinities, and INT_MIN for NaNs (see `ilogb`).

0 commit comments

Comments
 (0)
Please sign in to comment.