summary refs log tree commit diff stats
path: root/doc/docgen_sample.nim
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-01-25 16:24:39 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-01-25 16:24:39 +0100
commit7f9fb3a02462fbdb68284045bd51bd7f9458150b (patch)
tree9683e44f2a4f79584c214c9b5243d31d9264f716 /doc/docgen_sample.nim
parentf16881ad162a12833aba7598d65684d9e63600c2 (diff)
parent2ed7849921f0413c175094ff15b1cf71d931ed1c (diff)
downloadNim-7f9fb3a02462fbdb68284045bd51bd7f9458150b.tar.gz
Merge branch 'pr_oniondocs' into pr_oniondocs_devel
Diffstat (limited to 'doc/docgen_sample.nim')
-rw-r--r--doc/docgen_sample.nim12
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)