Skip to content

Commit 766c1bc

Browse files
committed
Fix the errors
1 parent a70b2ed commit 766c1bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/inline-assembly.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ operand. This is useful for very low level programming, where
107107
which register you use is important:
108108

109109
```
110+
# #![feature(asm)]
110111
# #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
111112
# unsafe fn read_byte_in(port: u16) -> u8 {
112113
let result: u8;
@@ -163,5 +164,5 @@ unsafe {
163164
asm!("mov eax, 2" : "={eax}"(result) : : : "intel")
164165
}
165166
println!("eax is currently {}", result);
166-
# } }
167+
# }
167168
```

0 commit comments

Comments
 (0)