another quickfix for os.nim documentation
This commit is contained in:
parent
9bd0c2d59a
commit
237a36075a
1 changed files with 6 additions and 4 deletions
|
|
@ -1252,9 +1252,10 @@ proc normalizePath*(path: var string) {.rtl, extern: "nos$1", tags: [], noNimScr
|
||||||
## * `normalizedPath proc <#normalizedPath,string>`_ for a version which returns
|
## * `normalizedPath proc <#normalizedPath,string>`_ for a version which returns
|
||||||
## a new string
|
## a new string
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
var a = "a///b//..//c///d"
|
when defined(posix):
|
||||||
a.normalizePath()
|
var a = "a///b//..//c///d"
|
||||||
assert a == "a/c/d"
|
a.normalizePath()
|
||||||
|
assert a == "a/c/d"
|
||||||
|
|
||||||
path = pathnorm.normalizePath(path)
|
path = pathnorm.normalizePath(path)
|
||||||
when false:
|
when false:
|
||||||
|
|
@ -1291,7 +1292,8 @@ proc normalizedPath*(path: string): string {.rtl, extern: "nos$1", tags: [], noN
|
||||||
## * `absolutePath proc <#absolutePath,string>`_
|
## * `absolutePath proc <#absolutePath,string>`_
|
||||||
## * `normalizePath proc <#normalizePath,string>`_ for the in-place version
|
## * `normalizePath proc <#normalizePath,string>`_ for the in-place version
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
assert normalizedPath("a///b//..//c///d") == "a/c/d"
|
when defined(posix):
|
||||||
|
assert normalizedPath("a///b//..//c///d") == "a/c/d"
|
||||||
result = pathnorm.normalizePath(path)
|
result = pathnorm.normalizePath(path)
|
||||||
|
|
||||||
when defined(Windows) and not weirdTarget:
|
when defined(Windows) and not weirdTarget:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue