1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00
This commit is contained in:
Rob Rix 2019-10-16 17:26:32 -04:00
parent 6fe1467956
commit 0246a2e130
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -145,7 +145,7 @@ diffTOC = map entrySummary . dedupe . tableOfContentsBy declaration
-- The user-facing category name
toCategoryName :: Declaration -> T.Text
toCategoryName declaration = case declaration of
FunctionDeclaration{} -> "Function"
MethodDeclaration{} -> "Method"
FunctionDeclaration{} -> "Function"
MethodDeclaration{} -> "Method"
HeadingDeclaration _ _ _ _ l -> "Heading " <> T.pack (show l)
ErrorDeclaration{} -> "ParseError"
ErrorDeclaration{} -> "ParseError"