File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/main/scala/scala/collection/next Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,12 @@ package object next {
21
21
new NextIterableOnceOpsExtensions (col)
22
22
23
23
implicit final class OptionOpsExtensions [A ](val v : Option [A ]) extends AnyVal {
24
- /** Apply the side-effecting function $f to the option's value,
25
- * if it is nonempty. Otherwise, do nothing.
26
- *
27
- * @param f a function to apply to the option's value
28
- * @tparam B the return type of f
29
- * @return the option
30
- */
24
+ /** Apply the side-effecting function `f` to the option's value
25
+ * if it is nonempty. Otherwise, do nothing.
26
+ *
27
+ * @param f a function to apply to the option's value
28
+ * @return the option
29
+ */
31
30
def tapEach [B ](f : A => B ): Option [A ] = { v.foreach(f); v }
32
31
}
33
32
}
You can’t perform that action at this time.
0 commit comments