Skip to content

Commit

Permalink
fix scala comparison for loop with js example
Browse files Browse the repository at this point in the history
  • Loading branch information
LOsioChico authored Jul 1, 2024
1 parent 377ca80 commit 6fb2432
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 @@ -970,7 +970,7 @@ val nums = List(1, 2, 3)
<td class="scala-block">
<code>// preferred
<br>for i &lt;- nums do
<br>&nbsp; val i = i * 2
<br>&nbsp; val j = i * 2
<br>&nbsp; println(j)
<br>
<br>// also available
Expand Down

0 comments on commit 6fb2432

Please sign in to comment.