Permalink
Browse files

fix documentation in Dispatch::Group#notify

  • Loading branch information...
Watson1978 committed Mar 30, 2012
1 parent 611c2ec commit 43d40b97cb5618e831c65db9a0373ea14ca81523
Showing with 2 additions and 2 deletions.
  1. +2 −2 gcd.c
View
4 gcd.c
@@ -766,15 +766,15 @@ 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.
*
* 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

0 comments on commit 43d40b9

Please sign in to comment.