From 4847df72d11063758e412b817d6d3595897dbed3 Mon Sep 17 00:00:00 2001 From: Niklas Vogel <21263864+n9v9@users.noreply.github.com> Date: Fri, 22 Jul 2022 00:19:37 +0200 Subject: [PATCH] Fix typo in asm.md --- src/unsafe/asm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unsafe/asm.md b/src/unsafe/asm.md index fa95fcad40..d509320663 100644 --- a/src/unsafe/asm.md +++ b/src/unsafe/asm.md @@ -352,7 +352,7 @@ In this example, we use the `reg_abcd` register class to restrict the register a Let us assume that the register allocator has chosen to allocate `x` in the `ax` register. The `h` modifier will emit the register name for the high byte of that register and the `l` modifier will emit the register name for the low byte. The asm code will therefore be expanded as `mov ah, al` which copies the low byte of the value into the high byte. -If you use a smaller data type (e.g. `u16`) with an operand and forget the use template modifiers, the compiler will emit a warning and suggest the correct modifier to use. +If you use a smaller data type (e.g. `u16`) with an operand and forget to use template modifiers, the compiler will emit a warning and suggest the correct modifier to use. ## Memory address operands