Skip to content

Commit 886f1f8

Browse files
authored
Fix minor typos
1 parent 42983a2 commit 886f1f8

File tree

1 file changed

+2
-2
lines changed
  • src/doc/unstable-book/src/library-features

1 file changed

+2
-2
lines changed

src/doc/unstable-book/src/library-features/asm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ assert_eq!(x, 5);
6666
This will write the value `5` into the `u64` variable `x`.
6767
You can see that the string literal we use to specify instructions is actually a template string.
6868
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
7070
be familiar with. First we need to specify if the variable is an input or an output of the
7171
inline assembly. In this case it is an output. We declared this by writing `out`.
7272
We also need to specify in what kind of register the assembly expects the variable.
@@ -106,7 +106,7 @@ code.
106106
Second, we can see that inputs are declared by writing `in` instead of `out`.
107107

108108
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.
110110
This is only possible for constants and literals.
111111

112112
Fourth, we can see that we can specify an argument number, or name as in any format string.

0 commit comments

Comments
 (0)