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では、ジェネリクスを用いてこれを実現しています。
14
14
<!-- Anyway, enough type theory, let’s check out some generic code. Rust’s -->
15
15
<!-- standard library provides a type, `Option<T>`, that’s generic: -->
16
16
さて、型理論はもう十分です。
17
- 続いてジェネリックなコードを幾つか見ていきましょう 。
17
+ 続いてジェネリックなコードをいくつか見ていきましょう 。
18
18
Rustが標準ライブラリで提供している型 ` Option<T> ` はジェネリックです。
19
19
20
20
``` rust
@@ -66,7 +66,7 @@ let y: Option<f64> = Some(5.0f64);
66
66
67
67
<!-- This is just fine. One definition, multiple uses. -->
68
68
これだけで結構です。
69
- 1つの定義で、多くの用途が得られます 。
69
+ 1つの定義で、多くの用途に対応できます 。
70
70
71
71
<!-- 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>`: -->
72
72
ジェネリクスにおいてジェネリックな型は1つまで、といった制限はありません。
You can’t perform that action at this time.
0 commit comments