Skip to content

Commit 6de9397

Browse files
committed
fix translation
1 parent e75b1c1 commit 6de9397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1.6/ja/book/associated-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
言い換えると、複数の型をグループ化するものです。
1212
この説明はすこし抽象的なので、実際の例を見ていきましょう。
1313
例えば、 `Graph` トレイトを定義したいとしましょう、このときジェネリックになる2つの型: 頂点の型、辺の型 が存在します。
14-
そのため、以下のように`Graph<N, E>` と書きたくなるでしょう:
14+
そのため、以下のように `Graph<N, E>` と書きたくなるでしょう:
1515

1616
```rust
1717
trait Graph<N, E> {
@@ -37,7 +37,7 @@ fn distance<N, E, G: Graph<N, E>>(graph: &G, start: &N, end: &N) -> u32 { ... }
3737

3838
<!-- What we really want to say is that a certain `E`dge and `N`ode type come together -->
3939
<!-- to form each kind of `Graph`. We can do that with associated types: -->
40-
本当に表現したいことは、それぞれのグラフ(Graph)は辺(E)や頂点(N)で構成されているということです。
40+
本当に表現したいことは、それぞれのグラフ( `Graph` )は辺( `E` )や頂点( `N` )で構成されているということです。
4141
それは、以下のように関連型を用いて表現することができます:
4242

4343
```rust

0 commit comments

Comments
 (0)