Skip to content

Commit 74c2bee

Browse files
committed
wording: source range may not get popped
1 parent 5ab6a95 commit 74c2bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/range/package.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ pure @safe nothrow @nogc unittest
38843884
`drop` is a convenience function which calls
38853885
$(REF popFrontN, std, range, primitives)`(range, n)` and returns `range`.
38863886
Unlike `popFrontN`, the range argument is not passed by `ref`, so
3887-
it may not be mutated.
3887+
the source range may not get popped.
38883888
38893889
`drop` makes it easier to pop elements from a range rvalue
38903890
and then pass it to another function within a single expression,
@@ -4039,7 +4039,7 @@ if (isBidirectionalRange!R)
40394039
`dropOne` is a convenience function which calls
40404040
`range.popFront()` and returns `range`.
40414041
Unlike `popFront`, the range argument is not passed by `ref`, so
4042-
it may not be mutated.
4042+
the source range may not get popped.
40434043
40444044
`dropOne` makes it easier to pop an element from a range rvalue
40454045
and then pass it to another function within a single expression,

0 commit comments

Comments
 (0)