Skip to content

Commit

Permalink
Fix typo in asm.md (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
n9v9 authored Jul 26, 2022
1 parent 3851cf6 commit d950242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unsafe/asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d950242

Please sign in to comment.