diff options
author | CORDEA <contact@cordea.jp> | 2016-03-02 20:55:02 +0900 |
---|---|---|
committer | CORDEA <contact@cordea.jp> | 2016-03-02 20:55:02 +0900 |
commit | f77bc7d93a48d21b98d195b718aad35945a3ffaa (patch) | |
tree | 366cacabd79c5dcf716e2ecbd800b3440c86ee87 /lib/pure/uri.nim | |
parent | 180a4b7657260af5411a4bea58240d3cac2ea0fe (diff) | |
download | Nim-f77bc7d93a48d21b98d195b718aad35945a3ffaa.tar.gz |
Fixed an wrong example of the doc
Diffstat (limited to 'lib/pure/uri.nim')
-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] == '/': |