Skip to content

Commit

Permalink
[Issue 16073] Fix incorrect uses of random access range primitives in…
Browse files Browse the repository at this point in the history
… std.algorithm.mutation
  • Loading branch information
JackStouffer committed Jun 2, 2016
1 parent a818c7e commit 3a1db06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/algorithm/mutation.d
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ TargetRange copy(SourceRange, TargetRange)(SourceRange source, TargetRange targe
auto len = source.length;
foreach (idx; 0 .. len)
target[idx] = source[idx];
return target[len .. $];
return target[len .. target.length];
}
else
{
Expand Down

0 comments on commit 3a1db06

Please sign in to comment.