Skip to content

Commit a261263

Browse files
author
Petr Chalupa
authored
The output should be commented in the example itself
1 parent f95b83c commit a261263

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/concurrent/atomic/semaphore.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ module Concurrent
134134
#
135135
# [t1, t2, t3, t4].each(&:join)
136136
#
137-
# outputs
138-
# "Thread 3 acquired semaphore"
139-
# "Thread 2 acquired semaphore"
140-
# "Thread 4 releasing semaphore"
141-
# "Thread 1 acquired semaphore"
137+
# # prints:
138+
# # Thread 3 acquired semaphore
139+
# # Thread 2 acquired semaphore
140+
# # Thread 4 releasing semaphore
141+
# # Thread 1 acquired semaphore
142142
#
143143
class Semaphore < SemaphoreImplementation
144144
end

0 commit comments

Comments
 (0)