Skip to content

Commit d9e8787

Browse files
author
Petr Chalupa
authored
The output should be commented in the example itself
1 parent 6dc8149 commit d9e8787

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/concurrent/atomic/event.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ module Concurrent
2929
#
3030
# [t1, t2].each(&:join)
3131
#
32-
# outputs
33-
# "t2 calling set"
34-
# "t1 is waiting"
35-
# "event ocurred"
36-
#
32+
# # prints:
33+
# # t2 calling set
34+
# # t1 is waiting
35+
# # event ocurred
3736
class Event < Synchronization::LockableObject
3837

3938
# Creates a new `Event` in the unset state. Threads calling `#wait` on the

0 commit comments

Comments
 (0)