diff options
author | Victor Shepelev <zverok.offline@gmail.com> | 2023-12-14 23:01:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 23:01:48 +0200 |
commit | 570d7b2c3e2ee39e07548dfe242b684ec794789d (patch) | |
tree | ee123eb1d1a8680ee9fd5f7c7a873a120acd833d /thread_sync.c | |
parent | d3deb1b8232a303dd40909e32f939bad3b24a8af (diff) | |
download | ruby-570d7b2c3e2ee39e07548dfe242b684ec794789d.tar.gz |
[DOC] Adjust some new features wording/examples. (#9183)
* Reword Range#overlap? docs last paragraph.
* Docs: add explanation about Queue#freeze
* Docs: Add :rescue event docs for TracePoint
* Docs: Enhance Module#set_temporary_name documentation
* Docs: Slightly expand Process::Status deprecations
* Fix MatchData#named_captures rendering glitch
* Improve Dir.fchdir examples
* Adjust Refinement#target docs
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thread_sync.c b/thread_sync.c index 825fdde76f..c0a0ca7103 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -1163,8 +1163,9 @@ NORETURN(static VALUE rb_queue_freeze(VALUE self)); * call-seq: * freeze * - * Raises an exception: - * Queue.new.freeze # Raises TypeError (cannot freeze #<Thread::Queue:0x...>) + * The queue can't be frozen, so this method raises an exception: + * Thread::Queue.new.freeze # Raises TypeError (cannot freeze #<Thread::Queue:0x...>) + * */ static VALUE rb_queue_freeze(VALUE self) |