diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-03-03 10:59:13 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-03-03 10:59:13 +0000 |
commit | 84cd3d9dc46bcb03c441cbf7492351ddb1516dc8 (patch) | |
tree | c898f3a93daf5730100e85c53122beea7b08e090 | |
parent | 63109d5312d7366823f589679a73ef92c296ec48 (diff) | |
parent | f77bc7d93a48d21b98d195b718aad35945a3ffaa (diff) | |
download | Nim-84cd3d9dc46bcb03c441cbf7492351ddb1516dc8.tar.gz |
Merge pull request #3926 from CORDEA/fix-uri-doc
Fixed an wrong example of the uri module doc.
-rw-r--r-- | lib/pure/uri.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/uri.nim b/lib/pure/uri.nim index abb1a462d..f0a3796a5 100644 --- a/lib/pure/uri.nim +++ b/lib/pure/uri.nim @@ -255,13 +255,13 @@ proc `/`*(x: Uri, path: string): Uri = ## Examples: ## ## .. code-block:: - ## let foo = parseUri("http://example.com/foo/bar") / parseUri("/baz") + ## let foo = parseUri("http://example.com/foo/bar") / "/baz" ## assert foo.path == "/foo/bar/baz" ## - ## let bar = parseUri("http://example.com/foo/bar") / parseUri("baz") + ## let bar = parseUri("http://example.com/foo/bar") / "baz" ## assert bar.path == "/foo/bar/baz" ## - ## let bar = parseUri("http://example.com/foo/bar/") / parseUri("baz") + ## let bar = parseUri("http://example.com/foo/bar/") / "baz" ## assert bar.path == "/foo/bar/baz" result = x if result.path[result.path.len-1] == '/': |