Skip to content

Commit db0cd5d

Browse files
committed
Cosmetics on the translation of Unsized Types (1.9)
1 parent bacff43 commit db0cd5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1.9/ja/book/unsized-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- represents a certain number of `T` in sequence. But we don’t know how many -->
99
<!-- there are, so the size is not known. -->
1010
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
11-
例えば`i32` 型は、32ビット(4バイト)というサイズです。
11+
たとえば`i32` 型は、32ビット(4バイト)というサイズです。
1212
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
1313
そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
1414
一例を上げると `[T]` 型は 一定のサイズの`T` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。
@@ -59,7 +59,7 @@ impl Foo for &str {
5959
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
6060
<!-- pointers, can use this `impl`. -->
6161
このように書いたとすると、このコードは [参照][ref] に対してのみ動作するようになり、他のポインタ型に対しては動作しないことになります。
62-
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それをまずは直さなくてはなりませんが)もこの `impl` を利用可能になります。
62+
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタいくつかの点についてバグがあるので、それをまずは直さなくてはなりませんがもこの `impl` を利用可能になります。
6363

6464
[ref]: references-and-borrowing.html
6565

0 commit comments

Comments
 (0)