From f9b775cd730f86bd860c59b97f105ee6e0192e5b Mon Sep 17 00:00:00 2001 From: andrewdotn Date: Thu, 16 Sep 2021 10:50:33 -0600 Subject: [PATCH] Typo fix This also rearranges the output order to highlight the case where t1 will wait before t2 calls set. --- lib/concurrent-ruby/concurrent/atomic/event.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/concurrent-ruby/concurrent/atomic/event.rb b/lib/concurrent-ruby/concurrent/atomic/event.rb index 825f38a03..31700ce22 100644 --- a/lib/concurrent-ruby/concurrent/atomic/event.rb +++ b/lib/concurrent-ruby/concurrent/atomic/event.rb @@ -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 @@ -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