diff options
author | flywind <xzsflywind@gmail.com> | 2021-02-24 23:52:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 21:52:23 -0800 |
commit | 60929953cb4ac0dffaa95ee25b666983b189cee1 (patch) | |
tree | 69cc6cebb3d6af1bbfc5cc11bf9dc1a9f549e708 | |
parent | fcb5cf643cf0abfaea4fb4b82b4f7255d72ecadd (diff) | |
download | Nim-60929953cb4ac0dffaa95ee25b666983b189cee1.tar.gz |
mark inline (#17180)
-rw-r--r-- | lib/pure/os.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 28c60d6eb..66a803058 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -225,7 +225,7 @@ proc joinPath*(parts: varargs[string]): string {.noSideEffect, for i in 0..high(parts): joinPathImpl(result, state, parts[i]) -proc `/`*(head, tail: string): string {.noSideEffect.} = +proc `/`*(head, tail: string): string {.noSideEffect, inline.} = ## The same as `joinPath(head, tail) proc <#joinPath,string,string>`_. ## ## See also: @@ -243,7 +243,7 @@ proc `/`*(head, tail: string): string {.noSideEffect.} = assert "usr/" / "/lib/" == "usr/lib/" assert "usr" / "lib" / "../bin" == "usr/bin" - return joinPath(head, tail) + result = joinPath(head, tail) proc splitPath*(path: string): tuple[head, tail: string] {. noSideEffect, rtl, extern: "nos$1".} = |