summary refs log tree commit diff stats
path: root/doc/docgen_sample.nim
diff options
context:
space:
mode:
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)