diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2019-07-22 07:22:57 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-22 16:22:57 +0200 |
commit | 8c93c692b95da7b19a88cc0d56a8cdd20e3ae576 (patch) | |
tree | beb483894fa86518ab65f95b2c8c8536d37234b5 /lib/pure | |
parent | 30f2cec67164e3e774a4dd5948828a5c6a439532 (diff) | |
download | Nim-8c93c692b95da7b19a88cc0d56a8cdd20e3ae576.tar.gz |
run runnableExamples in the module scope (#11732) [feature]
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/uri.nim | 4 |
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: "") |