Skip to content

Commit d950242

Browse files
authored
Fix typo in asm.md (#1585)
1 parent 3851cf6 commit d950242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/unsafe/asm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ In this example, we use the `reg_abcd` register class to restrict the register a
352352
Let us assume that the register allocator has chosen to allocate `x` in the `ax` register.
353353
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.
354354

355-
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.
355+
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.
356356

357357
## Memory address operands
358358

0 commit comments

Comments
 (0)