on master help sign in
Fix typos in hints/bad-recursion.md
commitf9de43095290f20be27903b9398db3e86bd1fd57 authorJeroen Engels <jfm.engels@gmail.com> dateSun 20 Oct 2019, 11:21 (7 years ago) parent6060484
1 file changed+1−1
hints/bad-recursion.md+1−1
hints/bad-recursion.md+1−1
@@ -10,7 +10,7 @@ There are two problems that will lead you here, both of them pretty tricky:
1010
1111## No Mutation
1212
13−Languages like JavaScript let you “reassign” variables. When you say `x = x + 1` it means: whatever `x` was pointing to, have it point to `x + 1` instead. This called *mutating* a variable. All values are immutable in Elm, so reassigning variables does not make any sense! Okay, so what *should* `x = x + 1` mean in Elm?
13+Languages like JavaScript let you “reassign” variables. When you say `x = x + 1` it means: whatever `x` was pointing to, have it point to `x + 1` instead. This is called *mutating* a variable. All values are immutable in Elm, so reassigning variables does not make any sense! Okay, so what *should* `x = x + 1` mean in Elm?
1414
1515Well, what does it mean with functions? In Elm, we write recursive functions like this:
1616