Navigation Menu

Skip to content

Commit

Permalink
Tweak a docstring example so it is clear who is returning the value
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrous26 committed Apr 13, 2012
1 parent 881356e commit 0fcb25e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gcd.c
Expand Up @@ -1194,7 +1194,10 @@ rb_semaphore_init(VALUE self, SEL sel, VALUE value)
*
* gcdq = Dispatch::Queue.new('doc')
* sema = Dispatch::Semaphore.new(0)
* gcdq.async { sleep 0.1; sema.signal } #=> false
* gcdq.async {
* sleep 0.1
* sema.signal #=> false
* }
* sema.wait
*
*/
Expand Down

0 comments on commit 0fcb25e

Please sign in to comment.