Skip to content

Commit 21d2f29

Browse files
authored
Rollup merge of #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 18bc4be + 3bb40f2 commit 21d2f29

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

Diff for: 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)