Skip to content

Commit 97af972

Browse files
committed
Improve Japanese and compensate for the punctuation
1 parent 89d0045 commit 97af972

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

1.6/ja/book/lang-items.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- For example, `Box` pointers require two lang items, one for allocation -->
2020
<!-- and one for deallocation. A freestanding program that uses the `Box` -->
2121
<!-- sugar for dynamic allocations via `malloc` and `free`: -->
22-
例えば、 `Box` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのためもう1つはデアロケーションのため
22+
例えば、 `Box` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのため、もう1つはデアロケーションのため
2323
フリースタンディング環境で動くプログラムは `Box``malloc``free` による動的アロケーションの糖衣として使います。
2424

2525
```rust
@@ -67,7 +67,7 @@ fn main(argc: isize, argv: *const *const u8) -> isize {
6767

6868
<!-- Note the use of `abort`: the `exchange_malloc` lang item is assumed to -->
6969
<!-- return a valid pointer, and so needs to do the check internally. -->
70-
`abort` を使ってることに注意して下さい: `exchange_malloc` 言語アイテムは有効なポインタを返すものとされており、内部でその検査する必要があるのです
70+
`abort` を使ってることに注意して下さい: `exchange_malloc` 言語アイテムは有効なポインタを返すものとされており、内部でその検査をする必要があるのです
7171

7272
<!-- Other features provided by lang items include: -->
7373
言語アイテムによって提供される機能には以下のようなものがあります。:

1.9/ja/book/lang-items.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- For example, `Box` pointers require two lang items, one for allocation -->
2020
<!-- and one for deallocation. A freestanding program that uses the `Box` -->
2121
<!-- sugar for dynamic allocations via `malloc` and `free`: -->
22-
例えば、 `Box` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのためもう1つはデアロケーションのため
22+
例えば、 `Box` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのため、もう1つはデアロケーションのため
2323
フリースタンディング環境で動くプログラムは `Box``malloc``free` による動的アロケーションの糖衣として使います。
2424

2525
```rust
@@ -73,7 +73,7 @@ fn main(argc: isize, argv: *const *const u8) -> isize {
7373

7474
<!-- Note the use of `abort`: the `exchange_malloc` lang item is assumed to -->
7575
<!-- return a valid pointer, and so needs to do the check internally. -->
76-
`abort` を使ってることに注意して下さい: `exchange_malloc` 言語アイテムは有効なポインタを返すものとされており、内部でその検査する必要があるのです
76+
`abort` を使ってることに注意して下さい: `exchange_malloc` 言語アイテムは有効なポインタを返すものとされており、内部でその検査をする必要があるのです
7777

7878
<!-- Other features provided by lang items include: -->
7979
言語アイテムによって提供される機能には以下のようなものがあります。:

0 commit comments

Comments
 (0)