Skip to content

Commit

Permalink
Fix grammar in plug guide (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgibowski authored and Gazler committed Apr 26, 2020
1 parent 4853b93 commit b3b5f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/plug.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ defmodule HelloWeb.MessageController do
end
```

To make this all work, we converted the nested blocks of code and used `halt(conn)` whenever we reached a failure path. The `halt(conn)` functionality is essential here: it tells Plug that the next plug should not invoked.
To make this all work, we converted the nested blocks of code and used `halt(conn)` whenever we reached a failure path. The `halt(conn)` functionality is essential here: it tells Plug that the next plug should not be invoked.

At the end of the day, by replacing the nested blocks of code with a flattened series of plug transformations, we are able to achieve the same functionality in a much more composable, clear, and reusable way.

Expand Down

0 comments on commit b3b5f23

Please sign in to comment.