Skip to content

Commit 5603f65

Browse files
aliismayilovjosevalim
authored andcommitted
Replace JavaScript example with C (elixir-lang#766)
1 parent 06ac010 commit 5603f65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

getting-started/recursion.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ title: Recursion
99

1010
## Loops through recursion
1111

12-
Due to immutability, loops in Elixir (as in any functional programming language) are written differently from imperative languages. For example, in an imperative language like JavaScript, one would write:
12+
Due to immutability, loops in Elixir (as in any functional programming language) are written differently from imperative languages. For example, in an imperative language like C, one would write:
1313

14-
```javascript
15-
for(i = 0; i < array.length; i++) {
14+
```c
15+
for(i = 0; i < sizeof(array); i++) {
1616
array[i] = array[i] * 2;
1717
}
1818
```

0 commit comments

Comments
 (0)