Transforms docgen sample to be generated from source.
This commit is contained in:
parent
91ae5a3585
commit
2ed7849921
5 changed files with 28 additions and 566 deletions
12
doc/docgen_sample.nim
Normal file
12
doc/docgen_sample.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
## This module is a sample.
|
||||
|
||||
import strutils
|
||||
|
||||
proc helloWorld*(times: int) =
|
||||
## Takes an integer and outputs
|
||||
## as many "hello world!"s
|
||||
|
||||
for i in 0 .. times-1:
|
||||
echo "hello world!"
|
||||
|
||||
helloWorld(5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue