mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add a missing comma
This commit is contained in:
@@ -4,7 +4,7 @@ The expressions you use in a `with` construct do not have to contain the
|
|||||||
`<-` syntax. You can pattern match and bind values along the way as well.
|
`<-` syntax. You can pattern match and bind values along the way as well.
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
with %{id: id} <- get_user()
|
with %{id: id} <- get_user(),
|
||||||
url = "/api/#{id}/blogs",
|
url = "/api/#{id}/blogs",
|
||||||
%{status_code: 200, body: body} <- HTTPoison.get(url),
|
%{status_code: 200, body: body} <- HTTPoison.get(url),
|
||||||
{:ok, decoded_body} <- Poison.decode(body) do
|
{:ok, decoded_body} <- Poison.decode(body) do
|
||||||
|
|||||||
Reference in New Issue
Block a user