Skip to content
Permalink
Browse files

Typo

  • Loading branch information
shanecav84 committed Mar 4, 2020
1 parent a03644f commit f1297d2f633b04b8370f8763f926667e9eaeb477
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs-source/channel.md
@@ -95,7 +95,7 @@ puts ~ch

## Channel Synchronization

The main purpose of channels is to synchronize operations across goroutines. One common pattern for this is to created a `capacity: 1` buffered channel which is used to signal that work is complete. The following example calls a `worker` function on a goroutine and passes it a "done" channel. The main thread then calls `take` on the "done" channel and blocks until signaled.
The main purpose of channels is to synchronize operations across goroutines. One common pattern for this is to create a `capacity: 1` buffered channel which is used to signal that work is complete. The following example calls a `worker` function on a goroutine and passes it a "done" channel. The main thread then calls `take` on the "done" channel and blocks until signaled.

```ruby
def worker(done_channel)

0 comments on commit f1297d2

Please sign in to comment.
You can’t perform that action at this time.