diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2015-03-29 11:59:30 +0800 |
---|---|---|
committer | Jacek Sieka <arnetheduck@gmail.com> | 2015-04-01 22:30:39 +0800 |
commit | 97d2df9bac34e01cb3a847909d76a60d8cc085db (patch) | |
tree | ac2d90999faac3e78131c30b1a5ef385eccacb9e /compiler | |
parent | 57fa8c6d3f535acc79ef8a67a6ef7aef0c7519da (diff) | |
download | Nim-97d2df9bac34e01cb3a847909d76a60d8cc085db.tar.gz |
compiler_ropes: ropeLen -> len
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ropes.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim index ae71234c4..4194ced95 100644 --- a/compiler/ropes.nim +++ b/compiler/ropes.nim @@ -86,7 +86,6 @@ proc app*(a: var PRope, b: string) proc prepend*(a: var PRope, b: PRope) proc toRope*(s: string): PRope proc toRope*(i: BiggestInt): PRope -proc ropeLen*(a: PRope): int proc writeRopeIfNotEqual*(r: PRope, filename: string): bool proc ropeToStr*(p: PRope): string proc ropef*(frmt: TFormatStr, args: varargs[PRope]): PRope @@ -100,7 +99,7 @@ proc ropeInvariant*(r: PRope): bool var errorHandler*: proc(err: TRopesError, msg: string, useWarning = false) # avoid dependency on msgs.nim -proc ropeLen(a: PRope): int = +proc len*(a: PRope): int = if a == nil: result = 0 else: result = a.length |