Skip to content

Commit 81e725c

Browse files
lacrossejosevalim
authored andcommitted
Fix typo in task-and-gen-tcp.markdown (#728)
1 parent 041c417 commit 81e725c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/mix-otp/task-and-gen-tcp.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ This is similar to the mistake we made when we called `KV.Bucket.start_link/0` s
196196

197197
The code above would have the same flaw: if we link the `serve(client)` task to the acceptor, a crash when serving a request would bring the acceptor, and consequently all other connections, down.
198198

199-
We fixed the issue for the registry by using a simple one for one supervisor. We are going to use the same tactic here, except that this pattern is so common with tasks that `Task` already come with a solution: a simple one for one supervisor with temporary workers that we can just use in our supervision tree!
199+
We fixed the issue for the registry by using a simple one for one supervisor. We are going to use the same tactic here, except that this pattern is so common with tasks that `Task` already comes with a solution: a simple one for one supervisor with temporary workers that we can just use in our supervision tree!
200200

201201
Let's change `start/2` once again, to add a supervisor to our tree:
202202

0 commit comments

Comments
 (0)