From 60a8e99fc2098a554bc660af9c91c2fc95024652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Gibowski?= Date: Sun, 26 Apr 2020 08:20:20 +0100 Subject: [PATCH] Fix grammar in plug guide (#3795) --- guides/plug.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/plug.md b/guides/plug.md index eccc069d6f..091b668bc4 100644 --- a/guides/plug.md +++ b/guides/plug.md @@ -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.