Skip to content

Commit c25415a

Browse files
authored
Merge pull request #3208 from AlexAsh/patch-1
Fixed function signature in "Anonymous functions" paragraph
2 parents c5a16ee + 4428752 commit c25415a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/scala-for-javascript-devs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ Both JavaScript and Scala let you define anonymous functions, which you can pass
514514
<br>
515515
<br>// a function or a method can be passed into another
516516
<br>// function or method
517-
<br>def printA(a: Any, f: log: Any =&gt; Unit) = log(a)
517+
<br>def printA(a: Any, log: Any =&gt; Unit) = log(a)
518518
</code>
519519
</td>
520520
</tr>

0 commit comments

Comments
 (0)