Skip to content

Commit 01879d8

Browse files
authored
Update README.md
1 parent beccb5e commit 01879d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val f: Int => Option[String] = { i =>
2828
}
2929

3030
// Convert an optional function to a PartialFunction
31-
val pf2: PartialFunction[Int, String] = f.unlift
31+
val pf2: PartialFunction[Int, String] = Function.unlift(f)
3232

3333
util.Random.nextInt(4) match {
3434
case pf.extract(m) => // Convert a PartialFunction to a pattern

0 commit comments

Comments
 (0)