about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-01 23:56:16 +0200
committerGitHub <noreply@github.com>2019-10-01 23:56:16 +0200
commitbaba6284bf909922de9a6a98093a522b80d9f8d8 (patch)
tree4f6d105fc1e6f98e2d16e76549b3f180f9e57706
parent702b45e409495a41afcccbe87a251a692b0cefab (diff)
parent5faae38851daea574b0b414618ec61a953bef2db (diff)
downloadrust-baba6284bf909922de9a6a98093a522b80d9f8d8.tar.gz
rust-baba6284bf909922de9a6a98093a522b80d9f8d8.zip
Rollup merge of #63416 - RalfJung:apfloat, r=eddyb
apfloat: improve doc comments

r? @eddyb @nagisa
-rw-r--r--src/librustc_apfloat/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_apfloat/lib.rs b/src/librustc_apfloat/lib.rs
index 1190cea21ac..5efe4fda8cc 100644
--- a/src/librustc_apfloat/lib.rs
+++ b/src/librustc_apfloat/lib.rs
@@ -555,12 +555,13 @@ pub trait Float
     fn ilogb(self) -> ExpInt;
 
     /// Returns: self * 2<sup>exp</sup> for integral exponents.
+    /// Equivalent to C standard library function `ldexp`.
     fn scalbn_r(self, exp: ExpInt, round: Round) -> Self;
     fn scalbn(self, exp: ExpInt) -> Self {
         self.scalbn_r(exp, Round::NearestTiesToEven)
     }
 
-    /// Equivalent of C standard library function.
+    /// Equivalent to C standard library function with the same name.
     ///
     /// While the C standard says exp is an unspecified value for infinity and nan,
     /// this returns INT_MAX for infinities, and INT_MIN for NaNs (see `ilogb`).