Skip to content

Commit 6bdbacd

Browse files
authored
Merge pull request #135 from tkeiyama/master-ja
ch10-2 タイポ修正: Trait -> Tweet
2 parents 830b130 + 41885cc commit 6bdbacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch10-02-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ how to write a function with this behavior in the [“Using Trait Objects That
621621
Allow for Values of Different
622622
Types”][using-trait-objects-that-allow-for-values-of-different-types] section of Chapter 17.
623623
-->
624-
`NewsArticle``Trait`を返すというのは、コンパイラの`impl Trait`構文の実装まわりの制約により許されていません。
624+
`NewsArticle``Tweet`を返すというのは、コンパイラの`impl Trait`構文の実装まわりの制約により許されていません。
625625
このような振る舞いをする関数を書く方法は、17章の[トレイトオブジェクトで異なる型の値を許容する][using-trait-objects-that-allow-for-values-of-different-types]節で学びます。
626626

627627
<!--

0 commit comments

Comments
 (0)