Skip to content

Commit 3ef3a5e

Browse files
committed
fix scala example
1 parent dbe2250 commit 3ef3a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ import scala.util.chaining.*
109109
.toCharArray
110110
.map(_.toInt)
111111
.sum
112-
.map(n => s"The number is $n")
113-
.map(println) // prints "The number is 1052"
112+
.pipe(n => s"The number is $n")
113+
.tap(println) // prints "The number is 1052"
114114
```
115115
/ad-break
116116

0 commit comments

Comments
 (0)