Typo spotted in hexdocs (Task and gen_tcp)

Hello,

I’m giving elixir a try, and I spotted a typo in here : Task and gen_tcp — Elixir v1.19.0

The second code snippet reads
{:ok, pid} = Task.Supervisor.start_child(KV.BucketSupervisor, fn -> serve(client) end)

where it should be

{:ok, pid} = Task.Supervisor.start_child(KV.ServerSupervisor, fn -> serve(client) end)

Pretty obvious in insight, but since the syntax and programming paradigm is so unusual for me it puzzled me for a while.

Anyways, I would give the feedback / propose a patch but I don’t know where this is hosted. So I figured I ask here instead.

1 Like

I’m not sure about the correctness of the code snippet, but regarding finding the source of the docs and contributing changes, every page has this little </> icon which links to the source code.

For Elixir it will be the GitHub repository.

2 Likes

The source is here. If you send a PR I’m sure it would be appreciated.

Note that there are </> symbols all over the docs that link to the source :slight_smile:

1 Like

Looking at the blame I think Jose simply introduced a typo while renaming the modules in the example.

That was fast !

Totally missed the little `</>`, this is nice.

Will do a PR. Thanks

2 Likes