Skip to content

Commit

Permalink
Merge pull request #3038 from LOsioChico/patch-2
Browse files Browse the repository at this point in the history
Fix for multiple generators in a loop example code Scala/JS
  • Loading branch information
sjrd authored Jul 1, 2024
2 parents 10d3619 + 996ebac commit 849307d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _overviews/scala3-book/scala-for-javascript-devs.md
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ val nums = List(1, 2, 3)
<code>let str = &quot;ab&quot;;
<br>for (let i = 1; i &lt; 3; i++) {
<br>&nbsp; for (var j = 0; j &lt; str.length; j++) {
<br>&nbsp;&nbsp;&nbsp; for (let k = 1; k &lt; 11; k++) {
<br>&nbsp;&nbsp;&nbsp; for (let k = 1; k &lt; 11; k += 5) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; let c = str.charAt(j);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; console.log(`i: ${i} j: ${c} k: ${k}`);
<br>&nbsp;&nbsp;&nbsp; }
Expand Down

0 comments on commit 849307d

Please sign in to comment.