adambard / adambard/learnxinyminutes-docs

[rust/en] clarify the difference between `impl<T> Foo<T>` and `impl Foo<T>`

オープン
#3,116 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。