Skip to content

Commit

Permalink
Rollup merge of #90084 - noncombatant:patch-2, r=steveklabnik
Browse files Browse the repository at this point in the history
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. :)
  • Loading branch information
matthiaskrgr authored Nov 2, 2021
2 parents 18bc4be + 3bb40f2 commit 21d2f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/unstable-book/src/library-features/asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ unsafe {
}
println!(
"L1 Cache: {}",
"L0 Cache: {}",
((ebx >> 22) + 1) * (((ebx >> 12) & 0x3ff) + 1) * ((ebx & 0xfff) + 1) * (ecx + 1)
);
```
Expand Down

0 comments on commit 21d2f29

Please sign in to comment.