Skip to content

Commit a285566

Browse files
committed
Grammar.
1 parent c791aa6 commit a285566

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

std/algorithm/searching.d

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,9 @@ if (isInputRange!R && !isInfinite!R)
807807
- `needle` is the index into `needles` which matched.
808808
- Both are `-1` if there was no match.
809809
810-
Warning: Due to the auto-decoding, the return value of this function may
811-
$(I not) correspond to the array index of strings. To find the index of an
812-
element matching the predicate in strings, use $(REF indexOf, std,string)
810+
Warning: Due to auto-decoding, the return value of this function may
811+
$(I not) correspond to the array index for strings. To find the index of an
812+
element matching the predicate in a string, use $(REF indexOf, std,string)
813813
instead.
814814
815815
See_Also: $(REF indexOf, std,string)
@@ -1052,9 +1052,9 @@ if (isInputRange!R &&
10521052
- If `startsWith!pred(haystack)` is not `true` for any element in
10531053
`haystack`, then `-1` is returned.
10541054
1055-
Warning: Due to the auto-decoding, the return value of this function may
1056-
$(I not) correspond to the array index of strings. To find the index of an
1057-
element matching the predicate in strings, use $(REF indexOf, std,string)
1055+
Warning: Due to auto-decoding, the return value of this function may
1056+
$(I not) correspond to the array index for strings. To find the index of an
1057+
element matching the predicate in a string, use $(REF indexOf, std,string)
10581058
instead.
10591059
+/
10601060
ptrdiff_t countUntil(alias pred, R)(R haystack)

0 commit comments

Comments
 (0)