diff options
-rw-r--r-- | lib/posix/posix_haiku.nim | 6 | ||||
-rw-r--r-- | lib/posix/posix_macos_amd64.nim | 6 | ||||
-rw-r--r-- | lib/posix/posix_openbsd_amd64.nim | 6 | ||||
-rw-r--r-- | lib/posix/posix_other.nim | 6 | ||||
-rw-r--r-- | lib/pure/collections/critbits.nim | 8 | ||||
-rw-r--r-- | lib/pure/collections/sharedtables.nim | 2 | ||||
-rw-r--r-- | lib/pure/cstrutils.nim | 16 | ||||
-rw-r--r-- | lib/pure/os.nim | 10 | ||||
-rw-r--r-- | lib/pure/osproc.nim | 2 | ||||
-rw-r--r-- | lib/pure/typetraits.nim | 2 | ||||
-rw-r--r-- | lib/system/channels.nim | 2 | ||||
-rw-r--r-- | lib/system/io.nim | 8 |
12 files changed, 37 insertions, 37 deletions
diff --git a/lib/posix/posix_haiku.nim b/lib/posix/posix_haiku.nim index bb430a8f3..eaf2cfb85 100644 --- a/lib/posix/posix_haiku.nim +++ b/lib/posix/posix_haiku.nim @@ -585,11 +585,11 @@ when hasSpawnH: # <sys/wait.h> proc WEXITSTATUS*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Exit code, iff WIFEXITED(s) + ## Exit code, if WIFEXITED(s) proc WTERMSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Termination signal, iff WIFSIGNALED(s) + ## Termination signal, if WIFSIGNALED(s) proc WSTOPSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Stop signal, iff WIFSTOPPED(s) + ## Stop signal, if WIFSTOPPED(s) proc WIFEXITED*(s: cint): bool {.importc, header: "<sys/wait.h>".} ## True if child exited normally. proc WIFSIGNALED*(s: cint): bool {.importc, header: "<sys/wait.h>".} diff --git a/lib/posix/posix_macos_amd64.nim b/lib/posix/posix_macos_amd64.nim index 304993dcb..33f2c5c41 100644 --- a/lib/posix/posix_macos_amd64.nim +++ b/lib/posix/posix_macos_amd64.nim @@ -595,11 +595,11 @@ when hasSpawnH: # <sys/wait.h> proc WEXITSTATUS*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Exit code, iff WIFEXITED(s) + ## Exit code, if WIFEXITED(s) proc WTERMSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Termination signal, iff WIFSIGNALED(s) + ## Termination signal, if WIFSIGNALED(s) proc WSTOPSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Stop signal, iff WIFSTOPPED(s) + ## Stop signal, if WIFSTOPPED(s) proc WIFEXITED*(s: cint): bool {.importc, header: "<sys/wait.h>".} ## True if child exited normally. proc WIFSIGNALED*(s: cint): bool {.importc, header: "<sys/wait.h>".} diff --git a/lib/posix/posix_openbsd_amd64.nim b/lib/posix/posix_openbsd_amd64.nim index 1ff636517..4f34791fe 100644 --- a/lib/posix/posix_openbsd_amd64.nim +++ b/lib/posix/posix_openbsd_amd64.nim @@ -543,11 +543,11 @@ when hasSpawnH: # <sys/wait.h> proc WEXITSTATUS*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Exit code, iff WIFEXITED(s) + ## Exit code, if WIFEXITED(s) proc WTERMSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Termination signal, iff WIFSIGNALED(s) + ## Termination signal, if WIFSIGNALED(s) proc WSTOPSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Stop signal, iff WIFSTOPPED(s) + ## Stop signal, if WIFSTOPPED(s) proc WIFEXITED*(s: cint): bool {.importc, header: "<sys/wait.h>".} ## True if child exited normally. proc WIFSIGNALED*(s: cint): bool {.importc, header: "<sys/wait.h>".} diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim index 204cc3d9a..919d564d3 100644 --- a/lib/posix/posix_other.nim +++ b/lib/posix/posix_other.nim @@ -600,11 +600,11 @@ when hasSpawnH: # <sys/wait.h> proc WEXITSTATUS*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Exit code, iff WIFEXITED(s) + ## Exit code, if WIFEXITED(s) proc WTERMSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Termination signal, iff WIFSIGNALED(s) + ## Termination signal, if WIFSIGNALED(s) proc WSTOPSIG*(s: cint): cint {.importc, header: "<sys/wait.h>".} - ## Stop signal, iff WIFSTOPPED(s) + ## Stop signal, if WIFSTOPPED(s) proc WIFEXITED*(s: cint): bool {.importc, header: "<sys/wait.h>".} ## True if child exited normally. proc WIFSIGNALED*(s: cint): bool {.importc, header: "<sys/wait.h>".} diff --git a/lib/pure/collections/critbits.nim b/lib/pure/collections/critbits.nim index 8128877bd..21c749afe 100644 --- a/lib/pure/collections/critbits.nim +++ b/lib/pure/collections/critbits.nim @@ -54,7 +54,7 @@ proc rawGet[T](c: CritBitTree[T], key: string): Node[T] = return if it.key == key: it else: nil proc contains*[T](c: CritBitTree[T], key: string): bool {.inline.} = - ## Returns true iff `c` contains the given `key`. + ## Returns true if `c` contains the given `key`. runnableExamples: var c: CritBitTree[void] incl(c, "key") @@ -156,7 +156,7 @@ proc excl*[T](c: var CritBitTree[T], key: string) = discard exclImpl(c, key) proc missingOrExcl*[T](c: var CritBitTree[T], key: string): bool = - ## Returns true iff `c` does not contain the given `key`. If the key + ## Returns true if `c` does not contain the given `key`. If the key ## does exist, c.excl(key) is performed. ## ## See also: @@ -178,7 +178,7 @@ proc missingOrExcl*[T](c: var CritBitTree[T], key: string): bool = result = c.count == oldCount proc containsOrIncl*[T](c: var CritBitTree[T], key: string, val: T): bool = - ## Returns true iff `c` contains the given `key`. If the key does not exist + ## Returns true if `c` contains the given `key`. If the key does not exist ## ``c[key] = val`` is performed. ## ## See also: @@ -204,7 +204,7 @@ proc containsOrIncl*[T](c: var CritBitTree[T], key: string, val: T): bool = if not result: n.val = val proc containsOrIncl*(c: var CritBitTree[void], key: string): bool = - ## Returns true iff `c` contains the given `key`. If the key does not exist + ## Returns true if `c` contains the given `key`. If the key does not exist ## it is inserted into `c`. ## ## See also: diff --git a/lib/pure/collections/sharedtables.nim b/lib/pure/collections/sharedtables.nim index cad9ca2c1..23b653c82 100644 --- a/lib/pure/collections/sharedtables.nim +++ b/lib/pure/collections/sharedtables.nim @@ -134,7 +134,7 @@ proc mgetOrPut*[A, B](t: var SharedTable[A, B], key: A, val: B): var B = mgetOrPutImpl(enlarge) proc hasKeyOrPut*[A, B](t: var SharedTable[A, B], key: A, val: B): bool = - ## returns true iff `key` is in the table, otherwise inserts `value`. + ## returns true if `key` is in the table, otherwise inserts `value`. withLock t: hasKeyOrPutImpl(enlarge) diff --git a/lib/pure/cstrutils.nim b/lib/pure/cstrutils.nim index a2a8fbc2f..345a9be7f 100644 --- a/lib/pure/cstrutils.nim +++ b/lib/pure/cstrutils.nim @@ -31,7 +31,7 @@ when defined(js): else: proc startsWith*(s, prefix: cstring): bool {.noSideEffect, rtl, extern: "csuStartsWith".} = - ## Returns true iff ``s`` starts with ``prefix``. + ## Returns true if ``s`` starts with ``prefix``. ## ## If ``prefix == ""`` true is returned. ## @@ -44,7 +44,7 @@ else: proc endsWith*(s, suffix: cstring): bool {.noSideEffect, rtl, extern: "csuEndsWith".} = - ## Returns true iff ``s`` ends with ``suffix``. + ## Returns true if ``s`` ends with ``suffix``. ## ## If ``suffix == ""`` true is returned. ## @@ -64,9 +64,9 @@ proc cmpIgnoreStyle*(a, b: cstring): int {.noSideEffect, ## NOT be used to compare Nim identifier names. use `macros.eqIdent` ## for that. Returns: ## - ## | 0 iff a == b - ## | < 0 iff a < b - ## | > 0 iff a > b + ## | 0 if a == b + ## | < 0 if a < b + ## | > 0 if a > b ## ## Not supported for JS backend, use `strutils.cmpIgnoreStyle ## <https://nim-lang.org/docs/strutils.html#cmpIgnoreStyle%2Cstring%2Cstring>`_ instead. @@ -86,9 +86,9 @@ proc cmpIgnoreCase*(a, b: cstring): int {.noSideEffect, rtl, extern: "csuCmpIgnoreCase".} = ## Compares two strings in a case insensitive manner. Returns: ## - ## | 0 iff a == b - ## | < 0 iff a < b - ## | > 0 iff a > b + ## | 0 if a == b + ## | < 0 if a < b + ## | > 0 if a > b ## ## Not supported for JS backend, use `strutils.cmpIgnoreCase ## <https://nim-lang.org/docs/strutils.html#cmpIgnoreCase%2Cstring%2Cstring>`_ instead. diff --git a/lib/pure/os.nim b/lib/pure/os.nim index b46205419..73fa76fbb 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -797,9 +797,9 @@ proc cmpPaths*(pathA, pathB: string): int {. ## On a case-sensitive filesystem this is done ## case-sensitively otherwise case-insensitively. Returns: ## - ## | 0 iff pathA == pathB - ## | < 0 iff pathA < pathB - ## | > 0 iff pathA > pathB + ## | 0 if pathA == pathB + ## | < 0 if pathA < pathB + ## | > 0 if pathA > pathB runnableExamples: when defined(macosx): assert cmpPaths("foo", "Foo") == 0 @@ -1108,7 +1108,7 @@ proc existsFile*(filename: string): bool {.rtl, extern: "nos$1", proc existsDir*(dir: string): bool {.rtl, extern: "nos$1", tags: [ReadDirEffect], noNimScript.} = - ## Returns true iff the directory `dir` exists. If `dir` is a file, false + ## Returns true if the directory `dir` exists. If `dir` is a file, false ## is returned. Follows symlinks. ## ## See also: @@ -1128,7 +1128,7 @@ proc existsDir*(dir: string): bool {.rtl, extern: "nos$1", tags: [ReadDirEffect] proc symlinkExists*(link: string): bool {.rtl, extern: "nos$1", tags: [ReadDirEffect], noNimScript.} = - ## Returns true iff the symlink `link` exists. Will return true + ## Returns true if the symlink `link` exists. Will return true ## regardless of whether the link points to a directory or file. ## ## See also: diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index ed5ab7b97..b0f15e38e 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -199,7 +199,7 @@ proc kill*(p: Process) {.rtl, extern: "nosp$1", tags: [].} ## * `terminate proc <#terminate,Process>`_ proc running*(p: Process): bool {.rtl, extern: "nosp$1", tags: [].} - ## Returns true iff the process `p` is still running. Returns immediately. + ## Returns true if the process `p` is still running. Returns immediately. proc processID*(p: Process): int {.rtl, extern: "nosp$1".} = ## Returns `p`'s process ID. diff --git a/lib/pure/typetraits.nim b/lib/pure/typetraits.nim index 2570afbf8..280233912 100644 --- a/lib/pure/typetraits.nim +++ b/lib/pure/typetraits.nim @@ -59,7 +59,7 @@ proc stripGenericParams*(t: typedesc): typedesc {.magic: "TypeTrait".} ## them unmodified. proc supportsCopyMem*(t: typedesc): bool {.magic: "TypeTrait".} - ## This trait returns true iff the type ``t`` is safe to use for + ## This trait returns true if the type ``t`` is safe to use for ## `copyMem`:idx:. ## ## Other languages name a type like these `blob`:idx:. diff --git a/lib/system/channels.nim b/lib/system/channels.nim index 834694626..e4b172c16 100644 --- a/lib/system/channels.nim +++ b/lib/system/channels.nim @@ -448,7 +448,7 @@ proc close*[TMsg](c: var Channel[TMsg]) = deinitRawChannel(addr(c)) proc ready*[TMsg](c: var Channel[TMsg]): bool = - ## Returns true iff some thread is waiting on the channel `c` for + ## Returns true if some thread is waiting on the channel `c` for ## new messages. var q = cast[PRawChannel](addr(c)) result = q.ready diff --git a/lib/system/io.nim b/lib/system/io.nim index f8358962f..efa2f9475 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -460,7 +460,7 @@ proc rawFileSize(file: File): int64 = discard c_fseek(file, oldPos, 0) proc endOfFile*(f: File): bool {.tags: [], benign.} = - ## Returns true iff `f` is at the end. + ## Returns true if `f` is at the end. var c = c_fgetc(f) discard c_ungetc(c, f) return c < 0'i32 @@ -598,7 +598,7 @@ proc open*(f: var File, filename: string, bufSize: int = -1): bool {.tags: [], raises: [], benign.} = ## Opens a file named `filename` with given `mode`. ## - ## Default mode is readonly. Returns true iff the file could be opened. + ## Default mode is readonly. Returns true if the file could be opened. ## This throws no exception if the file could not be opened. ## ## The file handle associated with the resulting ``File`` is not inheritable. @@ -632,7 +632,7 @@ proc reopen*(f: File, filename: string, mode: FileMode = fmRead): bool {. ## is often used to redirect the `stdin`, `stdout` or `stderr` ## file variables. ## - ## Default mode is readonly. Returns true iff the file could be reopened. + ## Default mode is readonly. Returns true if the file could be reopened. ## ## The file handle associated with `f` won't be inheritable. if freopen(filename, FormatOpen[mode], f) != nil: @@ -647,7 +647,7 @@ proc open*(f: var File, filehandle: FileHandle, mode: FileMode = fmRead): bool {.tags: [], raises: [], benign.} = ## Creates a ``File`` from a `filehandle` with given `mode`. ## - ## Default mode is readonly. Returns true iff the file could be opened. + ## Default mode is readonly. Returns true if the file could be opened. ## ## The passed file handle will no longer be inheritable. when not defined(nimInheritHandles) and declared(setInheritable): |