File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/doc/unstable-book/src/library-features Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ assert_eq!(x, 5);
6666This will write the value ` 5 ` into the ` u64 ` variable ` x ` .
6767You can see that the string literal we use to specify instructions is actually a template string.
6868It is governed by the same rules as Rust [ format strings] [ format-syntax ] .
69- The arguments that are inserted into the template however look a bit different then you may
69+ The arguments that are inserted into the template however look a bit different than you may
7070be familiar with. First we need to specify if the variable is an input or an output of the
7171inline assembly. In this case it is an output. We declared this by writing ` out ` .
7272We also need to specify in what kind of register the assembly expects the variable.
@@ -106,7 +106,7 @@ code.
106106Second, we can see that inputs are declared by writing ` in ` instead of ` out ` .
107107
108108Third, one of our operands has a type we haven't seen yet, ` const ` .
109- This tells the compiler to expand this argument to value directly inside the assembly template.
109+ This tells the compiler to expand this argument to a value directly inside the assembly template.
110110This is only possible for constants and literals.
111111
112112Fourth, we can see that we can specify an argument number, or name as in any format string.
You can’t perform that action at this time.
0 commit comments