Skip to content

Commit 3d2f41a

Browse files
Fix typos
1 parent fbeb116 commit 3d2f41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

promotion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ non-`Copy` types to be initialized idiomatically, for example
3737

3838
### `#[rustc_args_required_const(...)]`
3939

40-
Additionally, some platform intrinsics require certain operations to be
40+
Additionally, some platform intrinsics require certain parameters to be
4141
immediates (known at compile-time). We use the `#[rustc_args_required_const]`
4242
attribute, introduced in
4343
[rust-lang/rust#48018](https://github.com/rust-lang/rust/pull/48018), to
@@ -76,7 +76,7 @@ implicit context are a superset of the ones in an explicit context.
7676

7777
We defined above that promotion guarantees that code in a non-const context
7878
will be executed at compile-time. However, lifetime extension and non-`Copy`
79-
array initialziation are useful features *inside* `const`s and `static`s as
79+
array initialization are useful features *inside* `const`s and `static`s as
8080
well. Strictly speaking, the transformation used to enable these features
8181
inside a const-context is not promotion; no `promoted`s are created in the MIR.
8282
However the same rules for promotability are used with one modification:

0 commit comments

Comments
 (0)