diff options
| author | Chris Palmer <chris@noncombatant.org> | 2021-10-19 20:40:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 20:40:09 -0700 |
| commit | 3bb40f2ea00ceac3e91986a01ef5b2ecc8070f29 (patch) | |
| tree | e42ca131f893a269d8be668196380ff71f3af6d6 /src | |
| parent | 42983a28ab3c70728da7a9b932b667c978dd898d (diff) | |
| download | rust-3bb40f2ea00ceac3e91986a01ef5b2ecc8070f29.tar.gz rust-3bb40f2ea00ceac3e91986a01ef5b2ecc8070f29.zip | |
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. :)
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/library-features/asm.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/unstable-book/src/library-features/asm.md b/src/doc/unstable-book/src/library-features/asm.md index 5a2cef24870..e70933b7bae 100644 --- a/src/doc/unstable-book/src/library-features/asm.md +++ b/src/doc/unstable-book/src/library-features/asm.md @@ -257,7 +257,7 @@ unsafe { } println!( - "L1 Cache: {}", + "L0 Cache: {}", ((ebx >> 22) + 1) * (((ebx >> 12) & 0x3ff) + 1) * ((ebx & 0xfff) + 1) * (ecx + 1) ); ``` |
