diff options
author | Stephan Diehl <stephan@transvection.de> | 2015-02-21 21:53:19 +0100 |
---|---|---|
committer | Stephan Diehl <stephan@transvection.de> | 2015-02-21 21:53:19 +0100 |
commit | aa62dcc2af144fcf95ac6840ed5828463da94f4b (patch) | |
tree | 052415dc527ea80eca26112811b337288ea4208b /lib/pure/uri.nim | |
parent | ef44fd344bcaa2083766448c0974d4ffe3c09c33 (diff) | |
download | Nim-aa62dcc2af144fcf95ac6840ed5828463da94f4b.tar.gz |
little documentation fix on conbine and /
Diffstat (limited to 'lib/pure/uri.nim')
-rw-r--r-- | lib/pure/uri.nim | 8 |
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] == '/': |