mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
container.array: RangeT: moveBack: Improve an assertion.
This commit is contained in:
parent
073d85c1b9
commit
afeb00d580
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ private struct RangeT(A)
|
||||||
E moveBack()
|
E moveBack()
|
||||||
{
|
{
|
||||||
assert(!empty, "Attempting to moveBack an empty Array");
|
assert(!empty, "Attempting to moveBack an empty Array");
|
||||||
assert(_a <= _outer.length,
|
assert(_b - 1 < _outer.length,
|
||||||
"Attempting to moveBack using an out of bounds high index on an Array");
|
"Attempting to moveBack using an out of bounds high index on an Array");
|
||||||
return move(_outer._data._payload[_b - 1]);
|
return move(_outer._data._payload[_b - 1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue