Skip to content

Commit 3646d73

Browse files
committed
Fix some doc typos
1 parent 8c32e31 commit 3646d73

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ Language
17781778
- [Undeprecate lint `unstable_features` and make use of it in the compiler.](https://github.com/rust-lang/rust/pull/118639/)
17791779
- [Make inductive cycles in coherence ambiguous always.](https://github.com/rust-lang/rust/pull/118649/)
17801780
- [Get rid of type-driven traversal in const-eval interning](https://github.com/rust-lang/rust/pull/119044/),
1781-
only as a [future compatiblity lint](https://github.com/rust-lang/rust/pull/122204) for now.
1781+
only as a [future compatibility lint](https://github.com/rust-lang/rust/pull/122204) for now.
17821782
- [Deny braced macro invocations in let-else.](https://github.com/rust-lang/rust/pull/119062/)
17831783

17841784
<a id="1.77.0-Compiler"></a>

compiler/rustc_next_trait_solver/src/canonicalizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum CanonicalizeInputKind {
2727
ParamEnv,
2828
/// When canonicalizing predicates, we don't keep `'static`. If we're
2929
/// currently outside of the trait solver and canonicalize the root goal
30-
/// during HIR typeck, we replace each occurance of a region with a
30+
/// during HIR typeck, we replace each occurrence of a region with a
3131
/// unique region variable. See the comment on `InferCtxt::in_hir_typeck`
3232
/// for more details.
3333
Predicate { is_hir_typeck_root_goal: bool },

library/compiler-builtins/compiler-builtins/src/float/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ where
130130
return F::from_bits(MinInt::ZERO);
131131
}
132132

133-
// If partial cancellation occured, we need to left-shift the result
133+
// If partial cancellation occurred, we need to left-shift the result
134134
// and adjust the exponent:
135135
if a_significand < implicit_bit << 3 {
136136
let shift = a_significand.leading_zeros() as i32

library/compiler-builtins/compiler-builtins/src/probestack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub unsafe extern "custom" fn __rust_probestack() {
7373
// page needed.
7474
//
7575
// Note that we're also testing against `8(%rsp)` to account for the 8
76-
// bytes pushed on the stack orginally with our return address. Using
76+
// bytes pushed on the stack originally with our return address. Using
7777
// `8(%rsp)` simulates us testing the stack pointer in the caller's
7878
// context.
7979

library/compiler-builtins/etc/update-api-list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def eprint(*args, **kwargs):
3434

3535
@dataclass
3636
class Crate:
37-
"""Representation of public interfaces and function defintion locations in
37+
"""Representation of public interfaces and function definition locations in
3838
`libm`.
3939
"""
4040

library/compiler-builtins/libm/src/math/rem_pio2_large.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const PIO2: [f64; 8] = [
146146
// x[i] = floor(z)
147147
// z = (z-x[i])*2**24
148148
//
149-
// y[] ouput result in an array of double precision numbers.
149+
// y[] output result in an array of double precision numbers.
150150
// The dimension of y[] is:
151151
// 24-bit precision 1
152152
// 53-bit precision 2

0 commit comments

Comments
 (0)