Project

General

Profile

Actions

Bug #2466

closed

Mutex#lock documentation is incorrect

Added by vvs (Vladimir Sizikov) over 14 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.9 trunk
Backport:
[ruby-core:27113]

Description

=begin
Currently, it states:

mutex.lock => true or false

But actually, the Mutex#lock always just returns self, which is the most sensible behavior.

The doc should be:

mutex.lock => self

That would be in sync with Mutex#unlock as well.
=end

Actions

Also available in: Atom PDF

Like0
Like0