From c11398ea0d32640012946d7555750b3f3ea7fc0e Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 24 Sep 2013 09:27:00 +0200 Subject: [PATCH] bugfix: typos in os.nim --- lib/pure/os.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 8868233502..a39ca7b83e 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -598,11 +598,11 @@ iterator parentDirs*(path: string, fromRoot=false, inclusive=true): string = proc `/../` * (head, tail: string): string {.noSideEffect.} = ## The same as ``parentDir(head) / tail`` unless there is no parent directory. ## Then ``head / tail`` is performed instead. - let sepPos = parentDirPos(path) + let sepPos = parentDirPos(head) if sepPos >= 0: - result = substr(path, 0, sepPos-1) / tail + result = substr(head, 0, sepPos-1) / tail else: - result = path / tail + result = head / tail proc normExt(ext: string): string = if ext == "" or ext[0] == extSep: result = ext # no copy needed here