diff options
Diffstat (limited to 'lib/pure/ropes.nim')
-rwxr-xr-x | lib/pure/ropes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/ropes.nim b/lib/pure/ropes.nim index 52406d4d1..69737576f 100755 --- a/lib/pure/ropes.nim +++ b/lib/pure/ropes.nim @@ -287,7 +287,7 @@ when false: if frmt[i] != '$': inc(i) else: break if i - 1 >= start: - add(result, copy(frmt, start, i-1)) + add(result, substr(frmt, start, i-1)) proc `%`*(frmt: string, args: openarray[PRope]): PRope {. rtl, extern: "nroFormat".} = @@ -330,7 +330,7 @@ proc `%`*(frmt: string, args: openarray[PRope]): PRope {. if frmt[i] != '$': inc(i) else: break if i - 1 >= start: - add(result, copy(frmt, start, i - 1)) + add(result, substr(frmt, start, i - 1)) proc addf*(c: var PRope, frmt: string, args: openarray[PRope]) {. rtl, extern: "nro$1".} = |