Skip to content

Commit ab35541

Browse files
committed
Update heap_spec.rb
unnecessary variable x removed.
1 parent 8253fc6 commit ab35541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/heap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
before(:each) do
3939
@random_array = []
4040
@num_items = 100
41-
@num_items.times { |x| @random_array << rand(@num_items) }
41+
@num_items.times { @random_array << rand(@num_items) }
4242
@heap = Containers::MaxHeap.new(@random_array)
4343
end
4444

0 commit comments

Comments
 (0)