Skip to content

Commit 5d8839f

Browse files
committed
Fix inconsistent spelling (クレイト -> クレート)
1 parent c14b6b8 commit 5d8839f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

1.6/ja/book/trait-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Rustはガーベジコレクタによって管理される多くの言語とは
195195
dependent crates may implement `Foo` (any number of bytes at all). There’s no
196196
way to guarantee that this last point can work if the values are stored without
197197
a pointer, because those other types can be arbitrarily large. -->
198-
`Foo` のためには、 `String` (24 bytes)か `u8` (1 byte)もしくは `Foo` (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
198+
`Foo` のためには、 `String` (24 bytes)か `u8` (1 byte)もしくは `Foo` (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
199199

200200
<!-- Putting the value behind a pointer means the size of the value is not relevant
201201
when we are tossing a trait object around, only the size of the pointer itself. -->

1.9/ja/book/trait-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Rustはガーベジコレクタによって管理される多くの言語とは
195195
dependent crates may implement `Foo` (any number of bytes at all). There’s no
196196
way to guarantee that this last point can work if the values are stored without
197197
a pointer, because those other types can be arbitrarily large. -->
198-
`Foo` のためには、 `String` (24 bytes)か `u8` (1 byte)もしくは `Foo` (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
198+
`Foo` のためには、 `String` (24 bytes)か `u8` (1 byte)もしくは `Foo` (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
199199

200200
<!-- Putting the value behind a pointer means the size of the value is not relevant
201201
when we are tossing a trait object around, only the size of the pointer itself. -->

0 commit comments

Comments
 (0)