Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
82114b7980
3 changed files with 22 additions and 7 deletions
|
|
@ -18,7 +18,7 @@
|
|||
## that ``=`` performs a copy of the set.
|
||||
|
||||
import
|
||||
os, hashes, math
|
||||
hashes, math
|
||||
|
||||
{.pragma: myShallow.}
|
||||
when not defined(nimhygiene):
|
||||
|
|
|
|||
|
|
@ -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] == '/':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue