Skip to content

Commit 416f13e

Browse files
committed
Minor corrections.
1 parent f222060 commit 416f13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-default-type-parameter-fallback-take-two.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ The lints will guide you to add `_` where possible, the underscore represents an
284284

285285
Defaults may be set for type parameters in in traits, impls, struct and enum definitions and also methods and fns. They may not be set in `type` aliases. They also may not be set in methods and associated fns of trait impls, such defaults can only be set in the trait declaration. As per RFC 213, parameters with defaults must be trailing and may not be forward declared.
286286

287-
The behaviour of omited parameters in partially supplied parameter lists is as per RFC 213, they are inferred as if filled in with `_`. This is relevant to this [postoned RFC](https://github.com/rust-lang/rfcs/pull/1196) that suggests extending that behaviour to non-defaulted parameters.
287+
The behaviour of omited parameters in partially supplied parameter lists is as per RFC 213, they are inferred as if filled in with `_`. This is relevant to this [postponed RFC](https://github.com/rust-lang/rfcs/pull/1196) that suggests extending that behaviour to non-defaulted parameters.
288288

289289
## Defaults as fallbacks for inference
290290

@@ -296,7 +296,7 @@ The possibility of conflicts among defaults is the origin of the concerns that a
296296

297297
```rust
298298
fn foo<T=String>(x: Option<T>);
299-
fn bar<U>(y: Option<T>); // What if we had `fn bar<U=usize>`?
299+
fn bar<U>(y: Option<U>); // What if we had `fn bar<U=usize>`?
300300

301301
fn main() {
302302
let none: Option<_> = None;

0 commit comments

Comments
 (0)