Skip to content

Commit

Permalink
fix ameba warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Mar 30, 2024
1 parent 1a74cee commit cef1903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dijkstra.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Dijkstra

def initialize(@directed = false)
# {node1 => {edge1 => weight, edge2 => weight}, node2 => {...}, ...}
@neighbours = Hash(T, Hash(T, Int32)).new { |h, k| h[k] = Hash(T, Int32).new }
@neighbours = Hash(T, Hash(T, Int32)).new { |hsh, key| hsh[key] = Hash(T, Int32).new }

@vertices = Set(T).new
@infinity = Int32::MAX
Expand Down

0 comments on commit cef1903

Please sign in to comment.