Skip to content

Commit 93b1a3e

Browse files
committed
Fix function reference in types-variance chapter
1 parent 36de9b9 commit 93b1a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/types-variance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ val f: Function[Buyable, Buyable] = b => b
136136
val g: Function[Buyable, Item] = f
137137

138138
// OK to provide a Book where a Buyable is expected
139-
val h: Function[Book, Buyable] = g
139+
val h: Function[Book, Buyable] = f
140140
```
141141

142142
## Summary

0 commit comments

Comments
 (0)