Skip to content

Commit b22acef

Browse files
authored
Merge pull request #5214 from wilzbach/doc-std-algorithm-until
std.algorithm.searching: move `takeWhile` line to the current definition
2 parents a36113e + ee1e261 commit b22acef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/algorithm/searching.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4277,7 +4277,6 @@ Interval option specifier for `until` (below) and others.
42774277
42784278
If set to $(D OpenRight.yes), then the interval is open to the right
42794279
(last element is not included).
4280-
This is similar to `takeWhile` in other languages.
42814280
42824281
Otherwise if set to $(D OpenRight.no), then the interval is closed to the right
42834282
(last element included).
@@ -4288,6 +4287,8 @@ alias OpenRight = Flag!"openRight";
42884287
Lazily iterates $(D range) _until the element $(D e) for which
42894288
$(D pred(e, sentinel)) is true.
42904289
4290+
This is similar to `takeWhile` in other languages.
4291+
42914292
Params:
42924293
pred = Predicate to determine when to stop.
42934294
range = The $(REF_ALTTEXT input _range, isInputRange, std,_range,primitives)

0 commit comments

Comments
 (0)