Update src/attributes/codegen.md

Co-authored-by: Eric Huss <eric@huss.org>
This commit is contained in:
Lokathor 2023-05-27 20:31:34 -06:00 committed by GitHub
parent 236e01489c
commit a38bdf7e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ fn foo_arm_code() {}
fn bar_thumb_code() {}
```
If your function has neither the instruction_set attribute nor inline assembly, then the code you write within that function should not presume any particular instruction set.
If your function has neither the `instruction_set` attribute nor inline assembly, then the code you write within that function should not presume any particular instruction set.
This ends up creating a limitation to how often code is inlined:
* If a function has an `instruction_set` attribute it won't inline into a function of another instruction set.