summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2019-07-22 07:22:57 -0700
committerAndreas Rumpf <rumpf_a@web.de>2019-07-22 16:22:57 +0200
commit8c93c692b95da7b19a88cc0d56a8cdd20e3ae576 (patch)
treebeb483894fa86518ab65f95b2c8c8536d37234b5 /lib/pure
parent30f2cec67164e3e774a4dd5948828a5c6a439532 (diff)
downloadNim-8c93c692b95da7b19a88cc0d56a8cdd20e3ae576.tar.gz
run runnableExamples in the module scope (#11732) [feature]
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/uri.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index c0c78d735..088786f25 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -198,8 +198,8 @@ proc initUri*(): Uri =
   ## **See also:**
   ## * `Uri type <#Uri>`_ for available fields in the URI type
   runnableExamples:
-    var uri: Uri
-    assert initUri() == uri
+    var uri2: Uri
+    assert initUri() == uri2
   result = Uri(scheme: "", username: "", password: "", hostname: "", port: "",
                 path: "", query: "", anchor: "")