Files
Nim/doc/docgen_sample.nim
Timothee Cour 6e0c06f50e fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + other fixes (#13550)
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html
* suppress warnRedefinitionOfLabel for nim doc
* lots of fixes for UnusedImport warnings
2020-03-13 20:42:41 +01:00

13 lines
263 B
Nim

## This module is a sample.
import 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)