Skip to content

Commit 3bb40f2

Browse files
authored
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. :)
1 parent 42983a2 commit 3bb40f2

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)