summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 20:59:00 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 20:59:00 (GMT)
commitb11350d609482e10743cfa613a29c3866f7d8184 (patch)
treeb5059a88024b56c9b8bf0d310005151652214a18 /thread_sync.c
parent88c3bc2c20efb5cafd06c5459793fc40898b6b49 (diff)
thread_sync.c: fix documentation for Queue#close
When Queue#closed? is true, using push/enq/<< will raise an exception, and not return nil. * thread_sync.c: fix documentation for Queue#close Thanks to John Anderson. [ruby-core:81749] [Misc #13673] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index 971217c..a37f51f 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -730,7 +730,7 @@ queue_do_push(VALUE self, struct rb_queue *q, VALUE obj)
*
* - +close+ will be ignored.
*
- * - calling enq/push/<< will return nil.
+ * - calling enq/push/<< will raise an exception.
*
* - when +empty?+ is false, calling deq/pop/shift will return an object
* from the queue as usual.