Put function argument last in sort function. Fixes #3265.

This commit is contained in:
Simon BD
2012-09-27 19:05:13 -05:00
parent f98f00f7f6
commit 868d10160f
9 changed files with 42 additions and 32 deletions

View File

@@ -145,7 +145,7 @@ fn to_writer_pretty(wr: io::Writer, j: Json, indent: uint) {
}
// sort by key strings
let sorted_pairs = sort::merge_sort(|a,b| *a <= *b, pairs);
let sorted_pairs = do sort::merge_sort(pairs) |a,b| { *a <= *b };
// {
wr.write_str(~"{\n");