Skip to content

Commit aa79786

Browse files
committed
Improve description of nqp::replace
1 parent f6ceab6 commit aa79786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ops.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ The $flags is a bitmask that modifies the parse and/or result:
596596
## replace
597597
* `replace(str $str, int $offset, int $count, str $replacement)`
598598

599-
Replace the the characters of `$str` starting at `$offset` for `$count`
600-
characters, with the `$replacement` string.
599+
Return a copy of `$str` where the characters starting at `$offset` for `$count`
600+
characters have been replaced with the `$replacement` string.
601601

602602
## rindex
603603
* `rindex(str $haystack, str $needle)`

0 commit comments

Comments
 (0)