Skip to content

Commit

Permalink
Merge pull request #2530 from jwhear/patch-2
Browse files Browse the repository at this point in the history
Update zip documentation
  • Loading branch information
H. S. Teoh committed Sep 18, 2014
2 parents 8b6df55 + ef7c517 commit 0fb1bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/range.d
Expand Up @@ -5104,7 +5104,7 @@ unittest
{
int[] a = [ 1, 2, 3 ];
string[] b = [ "a", "b", "c" ];
sort!("a[0] > b[0]")(zip(a, b));
sort!((c, d) => c[0] > d[0])(zip(a, b));
assert(a == [ 3, 2, 1 ]);
assert(b == [ "c", "b", "a" ]);
}
Expand Down

0 comments on commit 0fb1bee

Please sign in to comment.