mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
13 lines
263 B
Nim
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)
|