From c6a08f0c4ad88467d322298df84e7460dbe861f9 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Fri, 13 Jan 2012 11:58:10 -0800 Subject: [PATCH] Pedantic comment revision --- yesod-json/Yesod/Json.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yesod-json/Yesod/Json.hs b/yesod-json/Yesod/Json.hs index 374408f6..509367a1 100644 --- a/yesod-json/Yesod/Json.hs +++ b/yesod-json/Yesod/Json.hs @@ -107,8 +107,7 @@ array = J.Array . V.fromList . map J.toJSON -- | jsonOrRedirect simplifies the scenario where a POST handler sends a different -- response based on Accept headers: -- --- 1. 200 with JSON data if the client prefers application/json (i.e. is an --- AJAX request) +-- 1. 200 with JSON data if the client prefers application/json (e.g. AJAX). -- -- 2. 3xx otherwise, following the PRG pattern. jsonOrRedirect :: (Yesod master, J.ToJSON a)