diff options
author | apense <apense@users.noreply.github.com> | 2015-07-09 14:02:21 -0400 |
---|---|---|
committer | apense <apense@users.noreply.github.com> | 2015-07-09 14:02:21 -0400 |
commit | a6e660e9358b5a852c3020cbf75232bf05e6972c (patch) | |
tree | db52cc82bb5a0046160f89796ace4e2e34b8f783 /lib | |
parent | 5a2e575bb636b429ce0fb7c5e01e5eb067d16804 (diff) | |
download | Nim-a6e660e9358b5a852c3020cbf75232bf05e6972c.tar.gz |
Corrected documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim index bf3e49ce1..5b257dc6d 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3286,18 +3286,18 @@ when declared(initDebugger): when hasAlloc: # XXX: make these the default (or implement the NilObject optimization) proc safeAdd*[T](x: var seq[T], y: T) {.noSideEffect.} = - ## Add ``y`` to ``x`` unless ``x`` is not yet initialized; in that case, + ## Adds ``y`` to ``x`` unless ``x`` is not yet initialized; in that case, ## ``x`` becomes ``@[y]`` if x == nil: x = @[y] else: x.add(y) proc safeAdd*(x: var string, y: char) = - ## Add ``y`` to ``x``. If ``x`` is ``nil`` it is initialized to ``""`` + ## Adds ``y`` to ``x``. If ``x`` is ``nil`` it is initialized to ``""`` if x == nil: x = "" x.add(y) proc safeAdd*(x: var string, y: string) = - ## Add ``y`` to ``x`` unless ``x`` is not yet initalized; in that case, ``x`` + ## Adds ``y`` to ``x`` unless ``x`` is not yet initalized; in that case, ``x`` ## becomes ``y`` if x == nil: x = y else: x.add(y) |