Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions getting_started/mix_otp/8.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ defp loop_acceptor(socket) do
loop_acceptor(socket)
end

defp serve(socket) do
socket
defp serve(client) do
client
|> read_line()
|> write_line(socket)
|> write_line(client)

serve(socket)
serve(client)
end

defp read_line(socket) do
Expand Down