From edaca0a9fdc4a7307ac2f2339f7b0b4caf1d2348 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 11 Jan 2025 17:08:01 +0200 Subject: [PATCH] add peek comment --- chip8_core/src/stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip8_core/src/stack.rs b/chip8_core/src/stack.rs index 72c8ffd..ca02295 100644 --- a/chip8_core/src/stack.rs +++ b/chip8_core/src/stack.rs @@ -23,7 +23,7 @@ impl Stack { self.storage.pop() } - // + /// Returns the top element from the stack without removing it. pub fn peek(&self) -> Option<&T> { self.storage.last() }