about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-29 00:30:30 +0200
committerGitHub <noreply@github.com>2021-10-29 00:30:30 +0200
commitdbe7141ac046d625946543936657ea6206b4cdd8 (patch)
treee3e738a43a5f75ee38a5939cbc6fcb5b6666d3e3
parent85c0558d032e204f4f4ed6137f3119cb92dbc684 (diff)
parent886f1f87f7fa7d5700d29eaa4763a90bc57b08f2 (diff)
downloadrust-dbe7141ac046d625946543936657ea6206b4cdd8.tar.gz
rust-dbe7141ac046d625946543936657ea6206b4cdd8.zip
Rollup merge of #90082 - noncombatant:patch-1, r=GuillaumeGomez
Fix minor typos
-rw-r--r--src/doc/unstable-book/src/library-features/asm.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/library-features/asm.md b/src/doc/unstable-book/src/library-features/asm.md
index 5a2cef24870..bd7234522e1 100644
--- a/src/doc/unstable-book/src/library-features/asm.md
+++ b/src/doc/unstable-book/src/library-features/asm.md
@@ -66,7 +66,7 @@ assert_eq!(x, 5);
 This will write the value `5` into the `u64` variable `x`.
 You can see that the string literal we use to specify instructions is actually a template string.
 It is governed by the same rules as Rust [format strings][format-syntax].
-The arguments that are inserted into the template however look a bit different then you may
+The arguments that are inserted into the template however look a bit different than you may
 be familiar with. First we need to specify if the variable is an input or an output of the
 inline assembly. In this case it is an output. We declared this by writing `out`.
 We also need to specify in what kind of register the assembly expects the variable.
@@ -106,7 +106,7 @@ code.
 Second, we can see that inputs are declared by writing `in` instead of `out`.
 
 Third, one of our operands has a type we haven't seen yet, `const`.
-This tells the compiler to expand this argument to value directly inside the assembly template.
+This tells the compiler to expand this argument to a value directly inside the assembly template.
 This is only possible for constants and literals.
 
 Fourth, we can see that we can specify an argument number, or name as in any format string.