Project

General

Profile

Actions

Bug #2466

closed

Mutex#lock documentation is incorrect

Added by vvs (Vladimir Sizikov) over 14 years ago. Updated almost 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 #1

Updated by marcandre (Marc-Andre Lafortune) about 14 years ago

  • Status changed from Open to Closed
  • ruby -v set to 1.9 trunk

=begin
Applied in r26072
=end

Actions

Also available in: Atom PDF

Like0
Like0