diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-11-11 20:52:36 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2018-11-11 20:52:36 +0700 |
commit | a62af858e003e4077f5f4554c3235a4c82636b7e (patch) | |
tree | d8890443495ca8b5613f51879695744815d469e4 /src/librustc_apfloat | |
parent | b76ee83254ec0398da554f25c2168d917ba60f1c (diff) | |
download | rust-a62af858e003e4077f5f4554c3235a4c82636b7e.tar.gz |
Fix typos.
Diffstat (limited to 'src/librustc_apfloat')
-rw-r--r-- | src/librustc_apfloat/ieee.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_apfloat/ieee.rs b/src/librustc_apfloat/ieee.rs index 4f405858e35..adcb9857ee3 100644 --- a/src/librustc_apfloat/ieee.rs +++ b/src/librustc_apfloat/ieee.rs @@ -895,7 +895,7 @@ impl<S: Semantics> Float for IeeeFloat<S> { } // The intermediate result of the multiplication has "2 * S::PRECISION" - // signicant bit; adjust the addend to be consistent with mul result. + // significant bit; adjust the addend to be consistent with mul result. let mut ext_addend_sig = [addend.sig[0], 0]; // Extend the addend significand to ext_precision - 1. This guarantees @@ -920,7 +920,7 @@ impl<S: Semantics> Float for IeeeFloat<S> { // Convert the result having "2 * S::PRECISION" significant-bits back to the one // having "S::PRECISION" significant-bits. First, move the radix point from - // poision "2*S::PRECISION - 1" to "S::PRECISION - 1". The exponent need to be + // position "2*S::PRECISION - 1" to "S::PRECISION - 1". The exponent need to be // adjusted by "2*S::PRECISION - 1" - "S::PRECISION - 1" = "S::PRECISION". self.exp -= S::PRECISION as ExpInt + 1; |