diff options
author | nc-x <neelesh.chandola@outlook.com> | 2019-05-05 02:05:00 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-04 22:35:00 +0200 |
commit | 20e3a39d6c9bee419f133f87920724d3d45e93d9 (patch) | |
tree | a9371df0815bdb9eaecfa0420c45f7832bf2ea8c | |
parent | d3db189eb42c1c44d8be1a1fc847ed8db428638f (diff) | |
download | Nim-20e3a39d6c9bee419f133f87920724d3d45e93d9.tar.gz |
Fix `nim doc` ignoring doc comments with implicit returns and implicit conversions (#11173)
-rw-r--r-- | compiler/docgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 014f757db..bad57fa18 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -254,7 +254,7 @@ proc genRecCommentAux(d: PDoc, n: PNode): Rope = result = genComment(d, n).rope if result == nil: if n.kind in {nkStmtList, nkStmtListExpr, nkTypeDef, nkConstDef, - nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn}: + nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn, nkHiddenStdConv}: # notin {nkEmpty..nkNilLit, nkEnumTy, nkTupleTy}: for i in countup(0, len(n)-1): result = genRecCommentAux(d, n.sons[i]) |