Files
Nim/doc/docgen_sample.nim

13 lines
267 B
Nim

## 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)