Skip to content

Commit

Permalink
refactor style
Browse files Browse the repository at this point in the history
  • Loading branch information
universato committed Mar 20, 2024
1 parent 4c201bc commit fc64034
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/deque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def push(*args)

def unshift(*args)
if reversed?
args.reverse_each{ |e| __push(e) }
args.reverse_each{ |e| __push(e) }
else
args.reverse_each{ |e| __unshift(e) }
end
Expand Down
2 changes: 1 addition & 1 deletion lib_lock/ac-library-rb/deque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def push(*args)

def unshift(*args)
if reversed?
args.reverse_each{ |e| __push(e) }
args.reverse_each{ |e| __push(e) }
else
args.reverse_each{ |e| __unshift(e) }
end
Expand Down
2 changes: 1 addition & 1 deletion test/priority_queue_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_aizu_sample_case
q.append(8)
assert_equal 8, q.pop
assert_equal 7, q.pop
q.<< 3
q << 3
q.push(4)
q.push(1)
assert_equal 4, q.pop
Expand Down

0 comments on commit fc64034

Please sign in to comment.