diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-05-29 05:30:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 05:30:36 -0700 |
commit | e646c16e06e95855a92c1d2453f6f927555aed7e (patch) | |
tree | c4fee1a08ee3fa71be8f803ab2ecf96892a03a84 /compiler | |
parent | e31ac81899767e4cebb706ed473dae7ff6f0afd7 (diff) | |
download | Nim-e646c16e06e95855a92c1d2453f6f927555aed7e.tar.gz |
hotfix doc comments for procs without body (#14494)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index f2dec41b3..ffafb1fcb 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -642,6 +642,7 @@ proc getAllRunnableExamples(d: PDoc, n: PNode, dest: var Rope) = var state = rsStart template fn(n2) = state = getAllRunnableExamplesImpl(d, n2, dest, state) + dest.add genComment(d, n).rope case n.kind of routineDefs: n = n.getRoutineBody |