From f03463bd85bde3e624b60006635e6b0081ea531c Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 20 Jan 2019 17:29:52 +0100 Subject: [PATCH] Rust 2018 allows foo.rs with foo/*.rs submodules Fixes #525 --- blog/content/second-edition/posts/03-vga-text-buffer/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/blog/content/second-edition/posts/03-vga-text-buffer/index.md b/blog/content/second-edition/posts/03-vga-text-buffer/index.md index 38881fbf..c2911003 100644 --- a/blog/content/second-edition/posts/03-vga-text-buffer/index.md +++ b/blog/content/second-edition/posts/03-vga-text-buffer/index.md @@ -59,9 +59,7 @@ Now that we know how the VGA buffer works, we can create a Rust module to handle mod vga_buffer; ``` -The content of this module can live either in `src/vga_buffer.rs` or `src/vga_buffer/mod.rs`. The latter supports submodules while the former does not. Our module does not need any submodules so we create it as `src/vga_buffer.rs`. - -All of the code below goes into our new module (unless specified otherwise). +For the content of this module we create a new `src/vga_buffer.rs` file. All of the code below goes into our new module (unless specified otherwise). ### Colors First, we represent the different colors using an enum: