[DOC] Fix example code indentation from 3 to 2

This commit is contained in:
Shane Becker 2023-07-12 17:11:43 -07:00 коммит произвёл Hiroshi SHIBATA
Родитель 3ef6364a98
Коммит 7524675330
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -855,17 +855,17 @@ queue_closed_result(VALUE self, struct rb_queue *q)
*
* producer = Thread.new do
* 5.times do |i|
* sleep rand(i) # simulate expense
* queue << i
* puts "#{i} produced"
* sleep rand(i) # simulate expense
* queue << i
* puts "#{i} produced"
* end
* end
*
* consumer = Thread.new do
* 5.times do |i|
* value = queue.pop
* sleep rand(i/2) # simulate expense
* puts "consumed #{value}"
* value = queue.pop
* sleep rand(i/2) # simulate expense
* puts "consumed #{value}"
* end
* end
*