summary refs log tree commit diff stats
path: root/lib/pure/uri.nim
diff options
context:
space:
mode:
authorStephan Diehl <stephan@transvection.de>2015-02-21 21:53:19 +0100
committerStephan Diehl <stephan@transvection.de>2015-02-21 21:53:19 +0100
commitaa62dcc2af144fcf95ac6840ed5828463da94f4b (patch)
tree052415dc527ea80eca26112811b337288ea4208b /lib/pure/uri.nim
parentef44fd344bcaa2083766448c0974d4ffe3c09c33 (diff)
downloadNim-aa62dcc2af144fcf95ac6840ed5828463da94f4b.tar.gz
little documentation fix on conbine and /
Diffstat (limited to 'lib/pure/uri.nim')
-rw-r--r--lib/pure/uri.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim
index 222b2b0b8..9a6e273a8 100644
--- a/lib/pure/uri.nim
+++ b/lib/pure/uri.nim
@@ -184,10 +184,10 @@ proc combine*(base: Uri, reference: Uri): Uri =
   ##   assert foo.path == "/baz"
   ##
   ##   let bar = combine(parseUri("http://example.com/foo/bar"), parseUri("baz"))
-  ##   assert foo.path == "/foo/baz"
+  ##   assert bar.path == "/foo/baz"
   ##
   ##   let bar = combine(parseUri("http://example.com/foo/bar/"), parseUri("baz"))
-  ##   assert foo.path == "/foo/bar/baz"
+  ##   assert bar.path == "/foo/bar/baz"
   
   template setAuthority(dest, src: expr): stmt =
     dest.hostname = src.hostname
@@ -241,10 +241,10 @@ proc `/`*(x: Uri, path: string): Uri =
   ##   assert foo.path == "/foo/bar/baz"
   ##
   ##   let bar = parseUri("http://example.com/foo/bar") / parseUri("baz")
-  ##   assert foo.path == "/foo/bar/baz"
+  ##   assert bar.path == "/foo/bar/baz"
   ##
   ##   let bar = parseUri("http://example.com/foo/bar/") / parseUri("baz")
-  ##   assert foo.path == "/foo/bar/baz"
+  ##   assert bar.path == "/foo/bar/baz"
   result = x
   if result.path[result.path.len-1] == '/':
     if path[0] == '/':