Skip to content

Commit

Permalink
mismatch should be @safe
Browse files Browse the repository at this point in the history
  • Loading branch information
braddr committed Oct 13, 2014
1 parent 38c7478 commit c7f75ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/algorithm.d
Original file line number Diff line number Diff line change
Expand Up @@ -8269,7 +8269,7 @@ mismatch(alias pred = "a == b", Range1, Range2)(Range1 r1, Range2 r2)
}

///
unittest
@safe unittest
{
int[] x = [ 1, 5, 2, 7, 4, 3 ];
double[] y = [ 1.0, 5, 2, 7.3, 4, 8 ];
Expand All @@ -8278,7 +8278,7 @@ unittest
assert(m[1] == y[3 .. $]);
}

unittest
@safe unittest
{
debug(std_algorithm) scope(success)
writeln("unittest @", __FILE__, ":", __LINE__, " done.");
Expand Down

0 comments on commit c7f75ba

Please sign in to comment.