summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-05-29 05:30:36 -0700
committerGitHub <noreply@github.com>2020-05-29 05:30:36 -0700
commite646c16e06e95855a92c1d2453f6f927555aed7e (patch)
treec4fee1a08ee3fa71be8f803ab2ecf96892a03a84 /compiler
parente31ac81899767e4cebb706ed473dae7ff6f0afd7 (diff)
downloadNim-e646c16e06e95855a92c1d2453f6f927555aed7e.tar.gz
hotfix doc comments for procs without body (#14494)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/docgen.nim1
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