Skip to content

Commit 0c72142

Browse files
committed
fix translation
1 parent 4e8e71b commit 0c72142

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unsafe/asm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Generally this should not be necessary, but might be where the required performa
1010
cannot be otherwise achieved. Accessing low level hardware primitives, e.g. in kernel code, may also demand this functionality.
1111
-->
1212
Rustは`asm!`マクロによってインラインアセンブリをサポートしています。
13-
コンパイラによって生成されるアセンブリに、手書きのアセンブリを埋め込むことができます。
13+
コンパイラが生成するアセンブリに、手書きのアセンブリを埋め込むことができます。
1414
一般的には必要ありませんが、要求されるパフォーマンスやタイミングを達成するために必要な場合があります。
1515
カーネルコードのような、低レベルなハードウェアの基本要素にアクセスする場合にも、この機能が必要でしょう。
1616

@@ -58,10 +58,10 @@ Note that all `asm!` invocations have to be inside an `unsafe` block, as they co
5858
arbitrary instructions and break various invariants. The instructions to be inserted are listed
5959
in the first argument of the `asm!` macro as a string literal.
6060
-->
61-
これにより、コンパイラが生成したアセンブリに、NOP (no operation) 命令が挿入されます
61+
これは、コンパイラが生成したアセンブリに、NOP (no operation) 命令を挿入します
6262
すべての`asm!`呼び出しは、`unsafe`ブロックの中になければいけません。
63-
というのも、インラインアセンブリは任意の命令を挿入でき、本来不変のものを変更できてしまうからです。
64-
挿入される命令は、`asm!`マクロの引数として文字列リテラルとして列挙されます
63+
インラインアセンブリは任意の命令を挿入でき、本来不変のものを変更できてしまうからです。
64+
挿入される命令は、文字列リテラルとして`asm!`マクロの第一引数に列挙されます
6565

6666
<!--
6767
## Inputs and outputs

0 commit comments

Comments
 (0)