Skip to content

Commit 9e09350

Browse files
committed
Fixed singular/plural in comments.
1 parent d3c5bf5 commit 9e09350

File tree

2 files changed

+198
-195
lines changed

2 files changed

+198
-195
lines changed

RegistryProcessor/src/Main.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,12 @@ showComment name sigElem
396396

397397
isInteresting = DM.isJust (arrayLength sigElem) || DM.isJust (belongsToGroup sigElem)
398398

399-
elms | numPointer sigElem > 0 = " pointing to" ++ len ++ " elements"
399+
elms | numPointer sigElem > 0 = " pointing to" ++ len ++ " " ++ elements
400400
| otherwise = ""
401401

402+
elements | arrayLength sigElem == Just "1" = "element"
403+
| otherwise = "elements"
404+
402405
len = maybe "" (\l -> " " ++ inlineCode l) (arrayLength sigElem)
403406

404407
base = maybeDeref . maybeSetBaseType

0 commit comments

Comments
 (0)