Skip to content

Commit 5c1cf6a

Browse files
committed
Formatting fixes.
1 parent 770005e commit 5c1cf6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ It can be difficult to reason about whether a type parameter can use an elided d
370370

371371
```rust
372372
fn foo<T, A>(t: T) -> Arc<T, A> {}
373-
// ^^
374-
// warning: Parameter that may have elided default has no default.
373+
// ^
374+
// warning: Parameter that may have elided default has no default.
375375
// help: Try setting an elided default `A = _` to use `alloc::Heap` as the default.
376376
// note: Lint `default_not_elided` on by default.
377377
```
@@ -444,7 +444,7 @@ struct Foo<T = Vec<i32>>(T);
444444
// `_` is `Vec<i32>`.
445445
fn func<U = _>(foo: Foo<U>) {}
446446
// Default elision is not allowed since `Vec<U>` has no for `U`.
447-
// `Vec<U>` happening to match `Vec<i32>` doesn't matter..
447+
// `Vec<U>` happening to match `Vec<i32>` doesn't matter.
448448
fn func<U>(foo: Foo<Vec<U>>) {}
449449
```
450450

0 commit comments

Comments
 (0)