Kind of small documentation bug on replace()
Posted: 03 Sep 2014 23:56
(Edited to be more exact)
Problem: 'replacement' not shown as optional, dflt-values not shown.
Bold = changes.
Doku of replace() says:
replace(string, search, replacement, [matchcase], [start=1], [count=-1])
but should say:
replace(string, search, [replacement=""], [matchcase=0], [start=1], [count=-1])
Operand "replacement" reads:
String to replace with.
but should read:
String to replace with. Default is empty string "": replace by nothing.
The sentence/hint below Usage might be dropped then.
Problem: 'replacement' not shown as optional, dflt-values not shown.
Bold = changes.
Doku of replace() says:
replace(string, search, replacement, [matchcase], [start=1], [count=-1])
but should say:
replace(string, search, [replacement=""], [matchcase=0], [start=1], [count=-1])
Operand "replacement" reads:
String to replace with.
but should read:
String to replace with. Default is empty string "": replace by nothing.
The sentence/hint below Usage might be dropped then.