diff options
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..06b8d7f8e --- /dev/null +++ b/doc/docgen_sample.nim @@ -0,0 +1,12 @@ +## This module is a sample. + +import std/strutils + +proc helloWorld*(times: int) = + ## Takes an integer and outputs + ## as many indented "hello world!"s + + for i in 0 .. times-1: + echo "hello world!".indent(2) # using indent to avoid `UnusedImport` + +helloWorld(5) |