Skip to content

Commit df04aec

Browse files
committed
Fix typo (方 -> 型, 用に -> ように)
1 parent f28caae commit df04aec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

1.6/ja/book/unsized-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
1111
例えば、 `i32` 型は、32ビット(4バイト)というサイズです。
1212
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
13-
そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
13+
そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
1414
一例を上げると `[T]` 型は 一定のサイズの`T` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。
1515

1616
<!-- Rust understands a few of these types, but they have some restrictions. There -->
@@ -56,7 +56,7 @@ impl Foo for &str {
5656
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
5757
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
5858
<!-- pointers, can use this `impl`. -->
59-
このように書いたとすると、このコードは [参照][ref] に対してのみ動作する用になり、他のポインタ型に対しては動作しないことになります。
59+
このように書いたとすると、このコードは [参照][ref] に対してのみ動作するようになり、他のポインタ型に対しては動作しないことになります。
6060
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの `impl` を利用可能になります。
6161

6262
[ref]: references-and-borrowing.html

1.9/ja/book/unsized-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
1111
例えば、 `i32` 型は、32ビット(4バイト)というサイズです。
1212
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
13-
そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
13+
そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
1414
一例を上げると `[T]` 型は 一定のサイズの`T` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。
1515

1616
<!-- Rust understands a few of these types, but they have some restrictions. There -->
@@ -56,7 +56,7 @@ impl Foo for &str {
5656
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
5757
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
5858
<!-- pointers, can use this `impl`. -->
59-
このように書いたとすると、このコードは [参照][ref] に対してのみ動作する用になり、他のポインタ型に対しては動作しないことになります。
59+
このように書いたとすると、このコードは [参照][ref] に対してのみ動作するようになり、他のポインタ型に対しては動作しないことになります。
6060
`imp for str` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの `impl` を利用可能になります。
6161

6262
[ref]: references-and-borrowing.html

0 commit comments

Comments
 (0)