mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix arity of rb_mutex_synchronize_m
This is just a trivial mistake introduced in
6c56dae4b2
.
This commit is contained in:
parent
abe12d8b96
commit
69683968a9
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg)
|
|||
* completes. See the example under +Mutex+.
|
||||
*/
|
||||
static VALUE
|
||||
rb_mutex_synchronize_m(VALUE self, VALUE args)
|
||||
rb_mutex_synchronize_m(VALUE self)
|
||||
{
|
||||
if (!rb_block_given_p()) {
|
||||
rb_raise(rb_eThreadError, "must be called with a block");
|
||||
|
|
Loading…
Reference in a new issue