From 1ebe869e0eda80a64bb85ddc67da097dd0e9a1ac Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Sun, 12 May 2019 05:39:31 -0700 Subject: [PATCH] Always use spaces for code (if possible) (#609) Almost all the code in the blog uses spaces instead of tabs. This change fixes 3 places where there was inconsistancy. This was causing some of the content to appear misaligned. Now tabs are only used in: - Makefiles - Dockerfiles - Command output (from `objdump` and `diff`) containing tabs - `.fish` files --- .../second-edition/posts/02-minimal-rust-kernel/index.md | 4 ++-- blog/static/css/main.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md b/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md index 84a37245..b4d12d47 100644 --- a/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md +++ b/blog/content/second-edition/posts/02-minimal-rust-kernel/index.md @@ -312,7 +312,7 @@ static HELLO: &[u8] = b"Hello World!"; #[no_mangle] pub extern "C" fn _start() -> ! { - let vga_buffer = 0xb8000 as *mut u8; + let vga_buffer = 0xb8000 as *mut u8; for (i, &byte) in HELLO.iter().enumerate() { unsafe { @@ -321,7 +321,7 @@ pub extern "C" fn _start() -> ! { } } - loop {} + loop {} } ``` diff --git a/blog/static/css/main.css b/blog/static/css/main.css index c13ac3a6..714a0562 100644 --- a/blog/static/css/main.css +++ b/blog/static/css/main.css @@ -13,7 +13,7 @@ } .front-page-introduction { - margin-bottom: 2rem; + margin-bottom: 2rem; } .navigation {