Transforms docgen sample to be generated from source.

This commit is contained in:
Grzegorz Adam Hankiewicz 2014-01-06 14:55:03 +01:00
commit 2ed7849921
5 changed files with 28 additions and 566 deletions

12
doc/docgen_sample.nim Normal file
View 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)