Skip to content

Commit 4e8e71b

Browse files
committed
fix punctuation
1 parent b1a030b commit 4e8e71b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/unsafe/asm.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Inline assembly is currently supported on the following architectures:
4040
<!--
4141
Let us start with the simplest possible example:
4242
-->
43-
最も単純な例から始めましょう
43+
最も単純な例から始めましょう
4444

4545
```rust
4646
# #[cfg(target_arch = "x86_64")] {
@@ -72,8 +72,8 @@ in the first argument of the `asm!` macro as a string literal.
7272
Now inserting an instruction that does nothing is rather boring. Let us do something that
7373
actually acts on data:
7474
-->
75-
何もしない命令を挿入しても面白くないですよね
76-
実際にデータを操作してみましょう
75+
何もしない命令を挿入しても面白くありません
76+
実際にデータを操作してみましょう
7777

7878
```rust
7979
# #[cfg(target_arch = "x86_64")] {
@@ -115,7 +115,7 @@ the template and will read the variable from there after the inline assembly fin
115115
<!--
116116
Let us see another example that also uses an input:
117117
-->
118-
入力を利用する別の例を見てみましょう
118+
入力を利用する別の例を見てみましょう
119119

120120
```rust
121121
# #[cfg(target_arch = "x86_64")] {
@@ -146,7 +146,7 @@ and then adding `5` to it.
146146
<!--
147147
The example shows a few things:
148148
-->
149-
この例はいくつかのことを示します
149+
この例はいくつかのことを示します
150150

151151
<!--
152152
First, we can see that `asm!` allows multiple template string arguments; each
@@ -177,7 +177,7 @@ readability, and allows reordering instructions without changing the argument or
177177
<!--
178178
We can further refine the above example to avoid the `mov` instruction:
179179
-->
180-
上記の例をさらに改善して、`mov`命令を避けることもできます
180+
上記の例をさらに改善して、`mov`命令を避けることもできます
181181

182182
```rust
183183
# #[cfg(target_arch = "x86_64")] {
@@ -201,7 +201,7 @@ This is different from specifying an input and output separately in that it is g
201201
<!--
202202
It is also possible to specify different variables for the input and output parts of an `inout` operand:
203203
-->
204-
`inout`のオペランドとして、入力と出力それぞれに異なる変数を指定することも可能です
204+
`inout`のオペランドとして、入力と出力それぞれに異なる変数を指定することも可能です
205205

206206
```rust
207207
# #[cfg(target_arch = "x86_64")] {
@@ -241,7 +241,7 @@ Rustコンパイラはオペランドの割り当てに保守的です。
241241
<!--
242242
Here is an example where `inlateout` *cannot* be used in `release` mode or other optimized cases:
243243
-->
244-
以下は、`release`モードやその他の最適化された場合に、`inout`を利用 *できない* 例です
244+
以下は、`release`モードやその他の最適化された場合に、`inout`を利用 *できない* 例です
245245

246246
```rust
247247
# #[cfg(target_arch = "x86_64")] {
@@ -343,7 +343,7 @@ In this example we call the `out` instruction to output the content of the `cmd`
343343
<!--
344344
Consider this example which uses the x86 `mul` instruction:
345345
-->
346-
x86の`mul`命令を使った次の例を考えてみましょう
346+
x86の`mul`命令を使った次の例を考えてみましょう
347347

348348
```rust
349349
# #[cfg(target_arch = "x86_64")] {
@@ -492,7 +492,7 @@ To work around this we use `rdi` to store the pointer to the output array, save
492492
This can also be used with a general register class to obtain a scratch register for use inside the asm code:
493493
-->
494494
アセンブリコード内部で利用するスクラッチレジスタを獲得するために、
495-
汎用レジスタクラスとともに使用することもできます
495+
汎用レジスタクラスとともに使用することもできます
496496

497497
```rust
498498
# #[cfg(target_arch = "x86_64")] {
@@ -655,7 +655,7 @@ fn load_fpu_control_word(control: u16) {
655655
Any reuse of a named label, local or otherwise, can result in an assembler or linker error or may cause other strange behavior. Reuse of a named label can happen in a variety of ways including:
656656
-->
657657
名前つきラベルの再利用は、ローカルかそうでないかに関わらず、アセンブラやリンカのエラーを引き起こしたり、変な挙動の原因となります。
658-
名前つきラベルの再利用は以下のようなケースがあります:
658+
名前つきラベルの再利用は以下のようなケースがあります
659659

660660
<!--
661661
- explicitly: using a label more than once in one `asm!` block, or multiple times across blocks.
@@ -711,7 +711,7 @@ This will decrement the `{0}` register value from 10 to 3, then add 2 and store
711711
<!--
712712
This example shows a few things:
713713
-->
714-
この例は、以下のことを示しています:
714+
この例は、以下のことを示しています
715715

716716
<!--
717717
- First, that the same number can be used as a label multiple times in the same inline block.
@@ -737,7 +737,7 @@ By default, an inline assembly block is treated the same way as an external FFI
737737
<!--
738738
Let's take our previous example of an `add` instruction:
739739
-->
740-
先ほどの`add`命令の例を見てみましょう:
740+
先ほどの`add`命令の例を見てみましょう
741741

742742
```rust
743743
# #[cfg(target_arch = "x86_64")] {

0 commit comments

Comments
 (0)