another quickfix for os.nim documentation

This commit is contained in:
narimiran 2019-02-01 19:44:19 +01:00
commit 237a36075a

View file

@ -1252,6 +1252,7 @@ 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:
when defined(posix):
var a = "a///b//..//c///d" var a = "a///b//..//c///d"
a.normalizePath() a.normalizePath()
assert a == "a/c/d" assert a == "a/c/d"
@ -1291,6 +1292,7 @@ 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:
when defined(posix):
assert normalizedPath("a///b//..//c///d") == "a/c/d" assert normalizedPath("a///b//..//c///d") == "a/c/d"
result = pathnorm.normalizePath(path) result = pathnorm.normalizePath(path)