diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-01-25 07:27:16 -0800 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-01-25 07:27:16 -0800 |
commit | 6ee21aa365be6443931061b1e6e715d9cf01d1c6 (patch) | |
tree | 9683e44f2a4f79584c214c9b5243d31d9264f716 /doc/docgen_sample.nim | |
parent | f16881ad162a12833aba7598d65684d9e63600c2 (diff) | |
parent | 7f9fb3a02462fbdb68284045bd51bd7f9458150b (diff) | |
download | Nim-6ee21aa365be6443931061b1e6e715d9cf01d1c6.tar.gz |
Merge pull request #841 from gradha/pr_oniondocs_devel
Added docgen documentation to devel branch
Diffstat (limited to 'doc/docgen_sample.nim')
-rw-r--r-- | doc/docgen_sample.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/docgen_sample.nim b/doc/docgen_sample.nim new file mode 100644 index 000000000..875993187 --- /dev/null +++ b/doc/docgen_sample.nim @@ -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) |