File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
<!-- For example, `Box` pointers require two lang items, one for allocation -->
20
20
<!-- and one for deallocation. A freestanding program that uses the `Box` -->
21
21
<!-- sugar for dynamic allocations via `malloc` and `free`: -->
22
- 例えば、 ` Box ` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのためもう1つはデアロケーションのため 。
22
+ 例えば、 ` Box ` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのため、もう1つはデアロケーションのため 。
23
23
フリースタンディング環境で動くプログラムは ` Box ` を ` malloc ` と ` free ` による動的アロケーションの糖衣として使います。
24
24
25
25
``` rust
@@ -67,7 +67,7 @@ fn main(argc: isize, argv: *const *const u8) -> isize {
67
67
68
68
<!-- Note the use of `abort`: the `exchange_malloc` lang item is assumed to -->
69
69
<!-- return a valid pointer, and so needs to do the check internally. -->
70
- ` abort ` を使ってることに注意して下さい: ` exchange_malloc ` 言語アイテムは有効なポインタを返すものとされており、内部でその検査する必要があるのです 。
70
+ ` abort ` を使ってることに注意して下さい: ` exchange_malloc ` 言語アイテムは有効なポインタを返すものとされており、内部でその検査をする必要があるのです 。
71
71
72
72
<!-- Other features provided by lang items include: -->
73
73
言語アイテムによって提供される機能には以下のようなものがあります。:
Original file line number Diff line number Diff line change 19
19
<!-- For example, `Box` pointers require two lang items, one for allocation -->
20
20
<!-- and one for deallocation. A freestanding program that uses the `Box` -->
21
21
<!-- sugar for dynamic allocations via `malloc` and `free`: -->
22
- 例えば、 ` Box ` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのためもう1つはデアロケーションのため 。
22
+ 例えば、 ` Box ` ポインタは2つの言語アイテムを必要とします。1つはアロケーションのため、もう1つはデアロケーションのため 。
23
23
フリースタンディング環境で動くプログラムは ` Box ` を ` malloc ` と ` free ` による動的アロケーションの糖衣として使います。
24
24
25
25
``` rust
@@ -73,7 +73,7 @@ fn main(argc: isize, argv: *const *const u8) -> isize {
73
73
74
74
<!-- Note the use of `abort`: the `exchange_malloc` lang item is assumed to -->
75
75
<!-- return a valid pointer, and so needs to do the check internally. -->
76
- ` abort ` を使ってることに注意して下さい: ` exchange_malloc ` 言語アイテムは有効なポインタを返すものとされており、内部でその検査する必要があるのです 。
76
+ ` abort ` を使ってることに注意して下さい: ` exchange_malloc ` 言語アイテムは有効なポインタを返すものとされており、内部でその検査をする必要があるのです 。
77
77
78
78
<!-- Other features provided by lang items include: -->
79
79
言語アイテムによって提供される機能には以下のようなものがあります。:
You can’t perform that action at this time.
0 commit comments