Skip to content

Commit cb6fe42

Browse files
authored
Fix “deleteBy” documentation example (add parenthesis) (#1582)
1 parent 55e6d53 commit cb6fe42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

persistent/Database/Persist/Class/PersistUnique.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class (PersistUniqueRead backend, PersistStoreWrite backend) =>
117117
-- With <#schema-persist-unique-1 schema-1> and <#dataset-persist-unique-1 dataset-1>,
118118
--
119119
-- > deleteBySpjName :: MonadIO m => ReaderT SqlBackend m ()
120-
-- > deleteBySpjName = deleteBy UniqueUserName "SPJ"
120+
-- > deleteBySpjName = deleteBy (UniqueUserName "SPJ")
121121
--
122122
-- The above query when applied on <#dataset-persist-unique-1 dataset-1>, will produce this:
123123
--

0 commit comments

Comments
 (0)