Skip to content

Commit 98745cf

Browse files
committed
Reflect review comments
1 parent 2961afd commit 98745cf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

library/src/scala/util/ChainingOps.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ final class ChainingOps[A](val self: A) extends AnyVal {
3333
* // i == 24
3434
* }}}
3535
*
36+
* Note: `(1 - 2 - 3).pipe(times6)` may have a small amount of overhead at
37+
* runtime compared to the equivalent `{ val temp = 1 - 2 - 3; times6(temp) }`.
38+
*
3639
* @param f the function to apply to the value.
3740
* @tparam B the result type of the function `f`.
3841
* @return a new value resulting from applying the given function

library/src/scala/util/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ package object util {
44
/**
55
* Adds chaining methods `tap` and `pipe` to every type. See [[ChainingOps]].
66
*/
7-
object chainingOps extends ChainingSyntax
7+
object chaining extends ChainingSyntax
88
}

0 commit comments

Comments
 (0)