1
0
Fork 0
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:
卜部昌平 2019-08-28 16:18:58 +09:00
parent abe12d8b96
commit 69683968a9

View file

@ -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");