Skip to content

Commit 50dd627

Browse files
committed
fix: typos
1 parent 1fd735e commit 50dd627

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hx/strings/Strings.hx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,17 +2108,17 @@ class Strings {
21082108
* >>> Strings.prependIfMissing("いは", "は") == "はいは"
21092109
* </code></pre>
21102110
*/
2111-
public static function prependIfMissing<T:String>(str:T, suffix:Null<String>):T {
2111+
public static function prependIfMissing<T:String>(str:T, prefix:Null<String>):T {
21122112
if (str == null)
21132113
return cast null;
21142114

21152115
if (str.length == 0)
2116-
return cast suffix + str;
2116+
return cast prefix + str;
21172117

2118-
if (str.startsWith(suffix))
2118+
if (str.startsWith(prefix))
21192119
return str;
21202120

2121-
return cast suffix + str;
2121+
return cast prefix + str;
21222122
}
21232123

21242124

@@ -2315,7 +2315,7 @@ class Strings {
23152315

23162316

23172317
/**
2318-
* Removes the first occurrence of <b>searchFor</b> in <b>searchIn</b> ignorning the case.
2318+
* Removes the first occurrence of <b>searchFor</b> in <b>searchIn</b> ignoring the case.
23192319
*
23202320
* <pre><code>
23212321
* >>> Strings.removeFirstIgnoreCase(null, "dog") == null
@@ -2524,7 +2524,7 @@ class Strings {
25242524

25252525

25262526
/**
2527-
* Replaces the first occurrence of <b>searchFor</b> in <b>searchIn</b> by <b>replaceWith</b> ignorning the case.
2527+
* Replaces the first occurrence of <b>searchFor</b> in <b>searchIn</b> by <b>replaceWith</b> ignoring the case.
25282528
*
25292529
* <pre><code>
25302530
* >>> Strings.replaceFirstIgnoreCase(null, "dog", "***") == null

0 commit comments

Comments
 (0)