Skip to content

Commit 04ae5a5

Browse files
committed
Amend comment on makeName function
Comment indicated that return type would be Nothing on failure, but it was in fact NameError. Amended to reflect reality.
1 parent d27f591 commit 04ae5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL/Internal/Name.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ unsafeMakeName name =
5050
-- | Create a 'Name'.
5151
--
5252
-- Names must match the regex @[_A-Za-z][_0-9A-Za-z]*@. If the given text does
53-
-- not match, return Nothing.
53+
-- not match, return NameError.
5454
--
5555
-- >>> makeName "foo"
5656
-- Right (Name {unName = "foo"})

0 commit comments

Comments
 (0)