Skip to content

Commit

Permalink
fix variable name in replaceInto example
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed May 14, 2016
1 parent 772f026 commit 26ccb97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -2011,10 +2011,10 @@ unittest
{
auto arr = [1, 2, 3, 4, 5];
auto from = [2, 3];
auto into = [4, 6];
auto to = [4, 6];
auto sink = appender!(int[])();

replaceInto(sink, arr, from, into);
replaceInto(sink, arr, from, to);

assert(sink.data == [1, 4, 6, 4, 5]);
}
Expand Down

0 comments on commit 26ccb97

Please sign in to comment.