Skip to content

Commit 1ea91e6

Browse files
authored
Fix lockstep error message (#9029)
1 parent 913ef46 commit 1ea91e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

std/range/package.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6095,8 +6095,9 @@ private struct LockstepMixin(Ranges...)
60956095
{
60966096
indexDef = q{
60976097
size_t index = ranges[0].length - 1;
6098-
enforce(this.stoppingPolicy == StoppingPolicy.requireSameLength,
6099-
"lockstep can only be used with foreach_reverse when stoppingPolicy == requireSameLength");
6098+
enforce(
6099+
this.stoppingPolicy == StoppingPolicy.requireSameLength,
6100+
"Indexed lockstep can only be used with foreach_reverse when stoppingPolicy == requireSameLength");
61006101

61016102
foreach (range; ranges[1 .. $])
61026103
enforce(range.length == ranges[0].length);

0 commit comments

Comments
 (0)