Skip to content

Commit 5f21d9e

Browse files
Update ballerina/natives.bal
Co-authored-by: Danesh Kuruppu <[email protected]>
1 parent 499b78c commit 5f21d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ballerina/natives.bal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public isolated function matches(string stringToMatch, string regex) returns boo
3838
# + originalString - The original string to replace the first occurrence of the
3939
# substring that matches the provided regex
4040
# + regex - The regex to match the first substring in the `originalString` to be replaced
41-
# + replacement - The replacement string to replace the first substring, which matches the regex
41+
# + replacement - The replacement string or A function to be invoked to create the new substring to be used to replace the first match to the given regex
4242
# + startIndex - The starting index for the search
4343
# + return - The resultant string with the replaced substring
4444
public isolated function replace(string originalString, string regex, Replacement replacement,

0 commit comments

Comments
 (0)