Skip to content

Commit 7393dd5

Browse files
2 parents 7228df4 + 3e4c4d5 commit 7393dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ballerina/natives.bal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public isolated function replace(string originalString, string regex, Replacemen
6969
# + originalString - The original string to replace the occurrences of the
7070
# substrings that match the provided regex
7171
# + regex - The regex to match the substrings in the `originalString` , which is to be replaced
72-
# + replacement - The replacement string to replace the substrings, which
73-
# match the regex
72+
# + replacement - The replacement string or a function to be invoked to create the new substring to be
73+
# used to replace the first match to the given regex
7474
# + return - The resultant string with the replaced substrings
7575
public isolated function replaceAll(string originalString, string regex, Replacement replacement) returns string {
7676
Match[] matchedArray = searchAll(originalString, regex);

0 commit comments

Comments
 (0)