Skip to content

Commit

Permalink
fix: hasDoc rule doesn't detect documentation in functions
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 6d14216dc4d5f8d80f58fd08302a0fa4c9d338d13092a80e93756ee64107987a
  • Loading branch information
thindil committed Jun 2, 2024
1 parent 07ac928 commit 0b08b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/hasdoc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ checkRule:
{nkIdentDefs, nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef,
nkTemplateDef, nkIteratorDef, nkConstDef, nkTypeDef, nkEnumTy,
nkConstSection, nkConstTy, nkVarSection, nkTypeSection, nkObjectTy,
nkLetSection}
nkLetSection, nkFuncDef}
of "callables":
{nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef, nkTemplateDef, nkIteratorDef}
{nkProcDef, nkMethodDef, nkConverterDef, nkMacroDef, nkTemplateDef, nkIteratorDef, nkFuncDef}
of "types":
{nkTypeSection, nkTypeDef, nkEnumTy, nkObjectTy, nkConstTy}
of "typesfields":
Expand Down

0 comments on commit 0b08b5d

Please sign in to comment.