summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorThomas T. Jarløv <ThomasTJdev@users.noreply.github.com>2019-01-27 21:59:58 +0100
committerMiran <narimiran@disroot.org>2019-01-27 21:59:58 +0100
commit91b39f2219773a5905524d33c64248fa64603087 (patch)
treef67a867b2e536d5e5b0034d23143d3eadc8988f7 /lib
parent4f0c3274ee96bbefe716f8725b0975799b7663b9 (diff)
downloadNim-91b39f2219773a5905524d33c64248fa64603087.tar.gz
uri: Update documentation typo (#10471)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/uri.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index c8350dfad..e49bfb3c6 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -33,8 +33,7 @@
 ##    import uri
 ##    let res = parseUri("sftp://127.0.0.1:4343")
 ##    if isAbsolute(res):
-##      echo "Connect to port: " & res.port
-##      # --> Connect to port: 4343
+##      assert res.port == "4343"
 ##    else:
 ##      echo "Wrong format"
 
@@ -343,9 +342,9 @@ proc combine*(uris: varargs[Uri]): Uri =
   ## **See also:**
   ## * `/ proc <#/,Uri,string>`_ for building URIs
   runnableExamples:
-    let foo = combine(parseUri("https://nim-lang.org/blog.html"), parseUri("/install.html"))
+    let foo = combine(parseUri("https://nim-lang.org/"), parseUri("docs/"), parseUri("manual.html"))
     assert foo.hostname == "nim-lang.org"
-    assert foo.path == "/install.html"
+    assert foo.path == "/docs/manual.html"
   result = uris[0]
   for i in 1 ..< uris.len:
     result = combine(result, uris[i])