From c041ab27d712e6600b466047941085ce5e918abe Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Tue, 19 Aug 2025 21:03:47 +0200 Subject: [PATCH] Fix some typos --- compiler-builtins/src/float/add.rs | 2 +- compiler-builtins/src/probestack.rs | 2 +- etc/update-api-list.py | 2 +- libm/src/math/rem_pio2_large.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-builtins/src/float/add.rs b/compiler-builtins/src/float/add.rs index 8dbfb0e10..acdcd2ebe 100644 --- a/compiler-builtins/src/float/add.rs +++ b/compiler-builtins/src/float/add.rs @@ -130,7 +130,7 @@ where return F::from_bits(MinInt::ZERO); } - // If partial cancellation occured, we need to left-shift the result + // If partial cancellation occurred, we need to left-shift the result // and adjust the exponent: if a_significand < implicit_bit << 3 { let shift = a_significand.leading_zeros() as i32 diff --git a/compiler-builtins/src/probestack.rs b/compiler-builtins/src/probestack.rs index 9a18216da..72975485a 100644 --- a/compiler-builtins/src/probestack.rs +++ b/compiler-builtins/src/probestack.rs @@ -73,7 +73,7 @@ pub unsafe extern "custom" fn __rust_probestack() { // page needed. // // Note that we're also testing against `8(%rsp)` to account for the 8 - // bytes pushed on the stack orginally with our return address. Using + // bytes pushed on the stack originally with our return address. Using // `8(%rsp)` simulates us testing the stack pointer in the caller's // context. diff --git a/etc/update-api-list.py b/etc/update-api-list.py index 28ff22f4c..76c75cbf4 100755 --- a/etc/update-api-list.py +++ b/etc/update-api-list.py @@ -34,7 +34,7 @@ def eprint(*args, **kwargs): @dataclass class Crate: - """Representation of public interfaces and function defintion locations in + """Representation of public interfaces and function definition locations in `libm`. """ diff --git a/libm/src/math/rem_pio2_large.rs b/libm/src/math/rem_pio2_large.rs index f1fdf3673..bb2c53291 100644 --- a/libm/src/math/rem_pio2_large.rs +++ b/libm/src/math/rem_pio2_large.rs @@ -146,7 +146,7 @@ const PIO2: [f64; 8] = [ // x[i] = floor(z) // z = (z-x[i])*2**24 // -// y[] ouput result in an array of double precision numbers. +// y[] output result in an array of double precision numbers. // The dimension of y[] is: // 24-bit precision 1 // 53-bit precision 2