Skip to content

Commit

Permalink
Freeze Deques created with Deque.alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdowad committed Sep 15, 2015
1 parent a7ab700 commit 2c9b88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hamster/deque.rb
Expand Up @@ -64,7 +64,7 @@ def alloc(front, rear)
result = allocate
result.instance_variable_set(:@front, front)
result.instance_variable_set(:@rear, rear)
result
result.freeze
end
end

Expand Down

0 comments on commit 2c9b88b

Please sign in to comment.