summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-03-13 12:42:41 -0700
committerGitHub <noreply@github.com>2020-03-13 20:42:41 +0100
commit6e0c06f50e0450522b32a1bad23a3d2a4e36e9f9 (patch)
tree99acceaabd5a5131343a0fa5305aff8b54c0e829 /doc
parent380a505507a6df9cbb1fe77b5b6251dc14894921 (diff)
downloadNim-6e0c06f50e0450522b32a1bad23a3d2a4e36e9f9.tar.gz
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
Diffstat (limited to 'doc')
-rw-r--r--doc/docgen_sample.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/docgen_sample.nim b/doc/docgen_sample.nim
index 875993187..7a167cb45 100644
--- a/doc/docgen_sample.nim
+++ b/doc/docgen_sample.nim
@@ -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)