Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix documentation in Dispatch::Group#notify

  • Loading branch information...
commit 43d40b97cb5618e831c65db9a0373ea14ca81523 1 parent 611c2ec
@Watson1978 Watson1978 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gcd.c
View
4 gcd.c
@@ -766,7 +766,7 @@ rb_group_init(VALUE self, SEL sel)
/*
* call-seq:
- * grp.notify { block }
+ * grp.notify(queue) { block }
*
* Asynchronously schedules a block to be called when the previously
* submitted dispatches for that group have completed.
@@ -774,7 +774,7 @@ rb_group_init(VALUE self, SEL sel)
* gcdq = Dispatch::Queue.new('doc')
* grp = Dispatch::Group.new
* gcdq.async(grp) { print 'foo' }
- * grp.notify { print 'bar' } #=> foobar
+ * grp.notify(gcdq) { print 'bar' } #=> foobar
*/
static VALUE
Please sign in to comment.
Something went wrong with that request. Please try again.