Skip to content

Commit 45f2366

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 e9b0d99 + 3bb40f2 commit 45f2366

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

Lines changed: 1 addition & 1 deletion
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)