Skip to content

Commit a3ad554

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

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
@@ -43,7 +43,7 @@ public isolated function matches(string stringToMatch, string regex) returns boo
4343
# + return - The resultant string with the replaced substring
4444
public isolated function replace(string originalString, string regex, Replacement replacement,
4545
int startIndex = 0) returns string {
46-
string subString = getSubstring(originalString, startIndex);
46+
string extractedString = getSubstring(originalString, startIndex);
4747
string|error replacementString = getReplacementString(originalString, regex, replacement, startIndex);
4848
if (replacementString is error) {
4949
return originalString;

0 commit comments

Comments
 (0)