From f77bc7d93a48d21b98d195b718aad35945a3ffaa Mon Sep 17 00:00:00 2001 From: CORDEA Date: Wed, 2 Mar 2016 20:55:02 +0900 Subject: Fixed an wrong example of the doc --- lib/pure/uri.nim | 6 +++--- 1 file 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] == '/': -- cgit 1.4.1-2-gfad0