From 7524675330eaf96caba155852bb06b34b809b2a9 Mon Sep 17 00:00:00 2001 From: Shane Becker Date: Wed, 12 Jul 2023 17:11:43 -0700 Subject: [PATCH] [DOC] Fix example code indentation from 3 to 2 --- thread_sync.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/thread_sync.c b/thread_sync.c index cbcb7c2eaf..5b3fb95030 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -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 *