mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
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
This commit is contained in:
committed by
Philipp Oppermann
parent
a770d09c0a
commit
1ebe869e0e
@@ -312,7 +312,7 @@ static HELLO: &[u8] = b"Hello World!";
|
|||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn _start() -> ! {
|
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() {
|
for (i, &byte) in HELLO.iter().enumerate() {
|
||||||
unsafe {
|
unsafe {
|
||||||
@@ -321,7 +321,7 @@ pub extern "C" fn _start() -> ! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.front-page-introduction {
|
.front-page-introduction {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
|
|||||||
Reference in New Issue
Block a user