Skip to content

Commit 439db66

Browse files
authored
Merge pull request rust-lang#291 from jfthuong/master
Corrected English typos
2 parents f21d751 + 0c08511 commit 439db66

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/math/ceil.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn ceil(x: f64) -> f64 {
2020
{
2121
//use an alternative implementation on x86, because the
2222
//main implementation fails with the x87 FPU used by
23-
//debian i386, probablly due to excess precision issues.
23+
//debian i386, probably due to excess precision issues.
2424
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
2525
use super::fabs;
2626
if fabs(x).to_bits() < 4503599627370496.0_f64.to_bits() {

src/math/floor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn floor(x: f64) -> f64 {
2020
{
2121
//use an alternative implementation on x86, because the
2222
//main implementation fails with the x87 FPU used by
23-
//debian i386, probablly due to excess precision issues.
23+
//debian i386, probably due to excess precision issues.
2424
//basic implementation taken from https://github.com/rust-lang/libm/issues/219
2525
use super::fabs;
2626
if fabs(x).to_bits() < 4503599627370496.0_f64.to_bits() {

src/math/pow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// 1. Compute and return log2(x) in two pieces:
1717
// log2(x) = w1 + w2,
1818
// where w1 has 53-24 = 29 bit trailing zeros.
19-
// 2. Perform y*log2(x) = n+y' by simulating muti-precision
19+
// 2. Perform y*log2(x) = n+y' by simulating multi-precision
2020
// arithmetic, where |y'|<=0.5.
2121
// 3. Return x**y = 2**n*exp(y'*log2)
2222
//

src/math/sqrt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn sqrt(x: f64) -> f64 {
9696
{
9797
// Note: This path is unlikely since LLVM will usually have already
9898
// optimized sqrt calls into hardware instructions if sse2 is available,
99-
// but if someone does end up here they'll apprected the speed increase.
99+
// but if someone does end up here they'll appreciate the speed increase.
100100
#[cfg(target_arch = "x86")]
101101
use core::arch::x86::*;
102102
#[cfg(target_arch = "x86_64")]

src/math/sqrtf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn sqrtf(x: f32) -> f32 {
3131
{
3232
// Note: This path is unlikely since LLVM will usually have already
3333
// optimized sqrt calls into hardware instructions if sse is available,
34-
// but if someone does end up here they'll apprected the speed increase.
34+
// but if someone does end up here they'll appreciate the speed increase.
3535
#[cfg(target_arch = "x86")]
3636
use core::arch::x86::*;
3737
#[cfg(target_arch = "x86_64")]

0 commit comments

Comments
 (0)