Skip to content

Commit 499b78c

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

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
@@ -30,7 +30,7 @@ public isolated function matches(string stringToMatch, string regex) returns boo
3030
}
3131

3232
# Replaces the first substring that matches the given regex with
33-
# the provided replacement string.
33+
# the provided replacement string or string returned by the provided function.
3434
# ```ballerina
3535
# string result = regex:replace("Ballerina is great", "\\s+", "_");
3636
# ```

0 commit comments

Comments
 (0)