Skip to content

Commit 5ab6a95

Browse files
committed
range *may* not be mutated
1 parent 152046c commit 5ab6a95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

std/range/package.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3883,8 +3883,8 @@ pure @safe nothrow @nogc unittest
38833883
/++
38843884
`drop` is a convenience function which calls
38853885
$(REF popFrontN, std, range, primitives)`(range, n)` and returns `range`.
3886-
Unlike `popFrontN`, the range argument is not passed by `ref`, so it will
3887-
not be mutated.
3886+
Unlike `popFrontN`, the range argument is not passed by `ref`, so
3887+
it may not be mutated.
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,
@@ -4038,8 +4038,8 @@ if (isBidirectionalRange!R)
40384038
/++
40394039
`dropOne` is a convenience function which calls
40404040
`range.popFront()` and returns `range`.
4041-
Unlike `popFront`, the range argument is not passed by `ref`, so it will
4042-
not be mutated.
4041+
Unlike `popFront`, the range argument is not passed by `ref`, so
4042+
it may not be mutated.
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)