File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Rustでは、ジェネリクスを用いてこれを実現しています。
1414<!-- Anyway, enough type theory, let’s check out some generic code. Rust’s -->
1515<!-- standard library provides a type, `Option<T>`, that’s generic: -->
1616さて、型理論はもう十分です。
17- 続いてジェネリックなコードを幾つか見ていきましょう 。
17+ 続いてジェネリックなコードをいくつか見ていきましょう 。
1818Rustが標準ライブラリで提供している型 ` Option<T> ` はジェネリックです。
1919
2020``` rust
@@ -66,7 +66,7 @@ let y: Option<f64> = Some(5.0f64);
6666
6767<!-- This is just fine. One definition, multiple uses. -->
6868これだけで結構です。
69- 1つの定義で、多くの用途が得られます 。
69+ 1つの定義で、多くの用途に対応できます 。
7070
7171<!-- Generics don’t have to only be generic over one type. Consider another type from Rust’s standard library that’s similar, `Result<T, E>`: -->
7272ジェネリクスにおいてジェネリックな型は1つまで、といった制限はありません。
You can’t perform that action at this time.
0 commit comments