Skip to content

Commit 7263809

Browse files
authored
Merge pull request #1162 from ethercrow/patch-1
Fix the example in Servant.Server
2 parents cfe4869 + 54812a9 commit 7263809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant-server/src/Servant/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import Servant.Server.Internal
110110
-- Example:
111111
--
112112
-- > type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
113-
-- > :<|> "books" :> ReqBody Book :> Post '[JSON] Book -- POST /books
113+
-- > :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book -- POST /books
114114
-- >
115115
-- > server :: Server MyApi
116116
-- > server = listAllBooks :<|> postBook

0 commit comments

Comments
 (0)