From a39d1ad5e4594a7ced19d0f74c0e541a1058d04e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Fri, 1 Jul 2022 10:21:49 +0100
Subject: [PATCH] docs: new docstring added

---
 src/ppu.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ppu.rs b/src/ppu.rs
index c7843b57..f50b080d 100644
--- a/src/ppu.rs
+++ b/src/ppu.rs
@@ -178,6 +178,9 @@ impl Ppu {
         }
     }
 
+    /// Updates the tile structure with the value that has
+    /// just been written to a location on the VRAM associated
+    /// with tiles.
     pub fn update_tile(&mut self, addr: u16, _value: u8) {
         let addr = addr & 0x1ffe;
         let tile_index = (addr >> 4) & 0x01ff;
-- 
GitLab