Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
This also rearranges the output order to highlight the case where t1 will wait before t2 calls set.
  • Loading branch information
andrewdotn committed Sep 16, 2021
1 parent 1709217 commit f9b775c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/concurrent-ruby/concurrent/atomic/event.rb
Expand Up @@ -19,7 +19,7 @@ module Concurrent
# t1 = Thread.new do
# puts "t1 is waiting"
# event.wait(1)
# puts "event ocurred"
# puts "event occurred"
# end
#
# t2 = Thread.new do
Expand All @@ -30,8 +30,8 @@ module Concurrent
# [t1, t2].each(&:join)
#
# # prints:
# # t2 calling set
# # t1 is waiting
# # t2 calling set
# # event occurred
class Event < Synchronization::LockableObject

Expand Down

0 comments on commit f9b775c

Please sign in to comment.