mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
quick-fix for os.nim documentation
This commit is contained in:
@@ -425,8 +425,9 @@ proc `/../`*(head, tail: string): string {.noSideEffect.} =
|
||||
## * `/ proc <#/,string,string>`_
|
||||
## * `parentDir proc <#parentDir,string>`_
|
||||
runnableExamples:
|
||||
assert "a/b/c" /../ "d/e" == "a/b/d/e"
|
||||
assert "a" /../ "d/e" == "a/d/e"
|
||||
when defined(posix):
|
||||
assert "a/b/c" /../ "d/e" == "a/b/d/e"
|
||||
assert "a" /../ "d/e" == "a/d/e"
|
||||
|
||||
let sepPos = parentDirPos(head)
|
||||
if sepPos >= 0:
|
||||
|
||||
Reference in New Issue
Block a user