Skip to content

Commit

Permalink
Fix grammar in plug guide (phoenixframework#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgibowski committed Apr 26, 2020
1 parent 7f63101 commit 60a8e99
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 60a8e99

Please sign in to comment.