File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ fn foo() -> &u32 {
60
60
}
61
61
```
62
62
63
- Writing out a ` const ` declaration everytime we need a long-lived reference or
63
+ Writing out a ` const ` declaration every time we need a long-lived reference or
64
64
a non-` Copy ` array initializer can be annoying. To improve the situation,
65
65
[ RFC 1414] introduced rvalue static promotion to extend lifetimes, and
66
66
[ RFC 2203] extended the concept of promotion to array initializers.
@@ -268,7 +268,7 @@ approach](https://github.com/rust-lang/rust/pull/70042#issuecomment-612221597)
268
268
instead.
269
269
270
270
It would also possible to separate out the parts of this RFC relating to patterns
271
- so that they can be decided upon seperately .
271
+ so that they can be decided upon separately .
272
272
273
273
# Prior art
274
274
[ prior-art ] : #prior-art
@@ -333,7 +333,7 @@ currently allow nested `const` declarations. Whether to lint against inline
333
333
[ future possibilities ] : #future-possibilities
334
334
335
335
It would be possible to allow the syntax ` const expr ` for an inline ` const ` that
336
- consists of a single expression. This is analagous to the single expression
336
+ consists of a single expression. This is analogous to the single expression
337
337
variant of closures: ` || 42 ` . This is backwards compatible with the current proposal.
338
338
339
339
At some point (an edition boundary?), we may want to narrow the scope of
You can’t perform that action at this time.
0 commit comments