Skip to content

Commit 9d3a003

Browse files
committed
Fix bicircular list type error
1 parent 56926ad commit 9d3a003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algorithms/bi_circular_list.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule AdventOfCode.Algorithms.BiCircularList do
3838
3939
"""
4040
@spec insert(BiCircularList.t(), any()) :: BiCircularList.t()
41-
def insert(%{current: nil} = bcl, value) when not is_nil(value) do
41+
def insert(%BiCircularList{current: nil} = bcl, value) when not is_nil(value) do
4242
%BiCircularList{bcl | current: value}
4343
end
4444

0 commit comments

Comments
 (0)