on master help sign in
Tidy up docstring of `MethodOverride` middleware

This tidies the grammar and brings the structure of the first sentence in line with that used elsewhere. Not a _dramatic_ improvement, more as a mild decrease in surprise factor when browsing the documentation.

commitbe91bc6569dbf9f500a2c502b2a4114e45f224fc authorAlistair Lynn <arplynn@gmail.com> dateSat 18 Feb 2017, 15:48 (10 years ago) parent7b177ee
1 file changed+4−5
wai-extra/Network/Wai/Middleware/MethodOverride.hs+4−5
wai-extra/Network/Wai/Middleware/MethodOverride.hs+4−5
@@ -5,12 +5,11 @@ module Network.Wai.Middleware.MethodOverride
55import Network.Wai
66import Control.Monad (join)
77
8−-- | Allows overriding of the HTTP request method via the _method query string
9−-- parameter.
8+-- | Overriding of HTTP request method via `_method` query string parameter.
109--
11−-- This middleware only applies when the initial request method is POST. This
12−-- allow submitting of normal HTML forms, without worries of semantics
13−-- mismatches in the HTTP spec.
10+-- This middleware only applies when the initial request method is POST.
11+-- Allows submitting of normal HTML forms, without worries of semantic
12+-- mismatches with the HTTP spec.
1413methodOverride :: Middleware
1514methodOverride app req =
1615 app req'