adambard / adambard/learnxinyminutes-docs
[rust/en] clarify the difference between `impl<T> Foo<T>` and `impl Foo<T>`
オープン
quickfix
- 主要言語
- Markdown
- スター
- 12.3k
- フォーク
- 3.7k
- 平均マージ
- 13時間 10分
- マージ済み PR(30日)
- 6
説明
This was confusing to me. At first glance, the first `T` just looks redundant because `Foo` is already
polymorphic. I'd add a note saying that the first `T` is necessary to indicate that `T` in `Foo` here
is not a concrete type, but a type parameter. Or, perhaps add an example where `T` is concrete, then `impl Foo` will get accepted.
コントリビューションガイド
評価
この issue はまだ評価されていません。