From 9e1a633f97424d890f4c451c7fc436019a04c733 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Sat, 25 May 2024 02:33:32 +0200 Subject: [PATCH] Fix FIFO for real. :) --- src/fifo.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fifo.cr b/src/fifo.cr index 4b060a9..e6684fb 100644 --- a/src/fifo.cr +++ b/src/fifo.cr @@ -37,6 +37,6 @@ class FIFO(V) # Removes a value. def delete(v : V) - @data.select! { |x| v != v } + @data.select! { |x| v != x } end end