* fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
This commit is contained in:
parent
380a505507
commit
6e0c06f50e
11 changed files with 27 additions and 12 deletions
|
|
@ -4,9 +4,9 @@ import strutils
|
|||
|
||||
proc helloWorld*(times: int) =
|
||||
## Takes an integer and outputs
|
||||
## as many "hello world!"s
|
||||
## as many indented "hello world!"s
|
||||
|
||||
for i in 0 .. times-1:
|
||||
echo "hello world!"
|
||||
echo "hello world!".indent(2) # using indent to avoid `UnusedImport`
|
||||
|
||||
helloWorld(5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue