on master help sign in
Merge pull request #131 from ngunn/dev

List.js: fix long-standing bug in append (2 chr$ change)

commit0a8187257c5afb5f84e0f1438594753136a5d9bb authorEvan Czaplicki <info@elm-lang.org> dateTue 26 Mar 2013, 10:03 (14 years ago) parent9a40392864761b
1 file changed+2−3
libraries/Native/List.js+2−3
libraries/Native/List.js+2−3
@@ -1,4 +1,3 @@
1−
21Elm.Native.List = function(elm) {
32 "use strict";
43
@@ -46,11 +45,11 @@ Elm.Native.List = function(elm) {
4645 function append(xs,ys) {
4746 if (typeof xs === "string") { return xs.concat(ys); }
4847 if (xs === Nil) { return ys; }
49− var root = Cons(xs._0. Nil);
48+ var root = Cons(xs._0, Nil);
5049 var curr = root;
5150 xs = xs._1;
5251 while (xs.ctor !== 'Nil') {
53− curr._1 = Cons(xs._0. Nil);
52+ curr._1 = Cons(xs._0, Nil);
5453 xs = xs._1;
5554 curr = curr._1;
5655 }