Skip to content

Commit f2334d6

Browse files
authored
Rollup merge of rust-lang#90084 - noncombatant:patch-2, r=steveklabnik
Make printed message match the code comment I think this code is getting L0, not L1 cache size, if I'm reading the Intel manual right. (I might not be.) Either way, the code comment and the printed message should match, whichever way is right. :)
2 parents c3190c1 + 3bb40f2 commit f2334d6

File tree

1 file changed

+1
-1
lines changed
  • src/doc/unstable-book/src/library-features

1 file changed

+1
-1
lines changed

src/doc/unstable-book/src/library-features/asm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ unsafe {
257257
}
258258
259259
println!(
260-
"L1 Cache: {}",
260+
"L0 Cache: {}",
261261
((ebx >> 22) + 1) * (((ebx >> 12) & 0x3ff) + 1) * ((ebx & 0xfff) + 1) * (ecx + 1)
262262
);
263263
```

0 commit comments

Comments
 (0)