Skip to content

Commit e2377c0

Browse files
committed
typo
1 parent 43fbb34 commit e2377c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/Strings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public static function after(string $haystack, string $needle, int $nth = 1): ?s
425425

426426

427427
/**
428-
* Returns position in bytes of $nth occurence of $needle in $haystack or null if the $needle was not found.
428+
* Returns position in characters of $nth occurence of $needle in $haystack or null if the $needle was not found.
429429
* Negative value of `$nth` means searching from the end.
430430
*/
431431
public static function indexOf(string $haystack, string $needle, int $nth = 1): ?int
@@ -438,7 +438,7 @@ public static function indexOf(string $haystack, string $needle, int $nth = 1):
438438

439439

440440
/**
441-
* Returns position in bytes of $nth occurence of $needle in $haystack or null if the needle was not found.
441+
* Returns position in characters of $nth occurence of $needle in $haystack or null if the needle was not found.
442442
*/
443443
private static function pos(string $haystack, string $needle, int $nth = 1): ?int
444444
{

0 commit comments

Comments
 (0)