yinameah
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.20.2
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.
Most Liked
rhcarvalho
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.
yinameah
That was fast !
Totally missed the little `</>`, this is nice.
Will do a PR. Thanks
garrison
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 ![]()
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









