File tree 1 file changed +2
-2
lines changed
src/doc/unstable-book/src/library-features
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);
66
66
This will write the value ` 5 ` into the ` u64 ` variable ` x ` .
67
67
You can see that the string literal we use to specify instructions is actually a template string.
68
68
It 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
70
70
be familiar with. First we need to specify if the variable is an input or an output of the
71
71
inline assembly. In this case it is an output. We declared this by writing ` out ` .
72
72
We also need to specify in what kind of register the assembly expects the variable.
@@ -106,7 +106,7 @@ code.
106
106
Second, we can see that inputs are declared by writing ` in ` instead of ` out ` .
107
107
108
108
Third, 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.
110
110
This is only possible for constants and literals.
111
111
112
112
Fourth, 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