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 {
2121 new NextIterableOnceOpsExtensions (col)
2222
2323 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+ */
3130 def tapEach [B ](f : A => B ): Option [A ] = { v.foreach(f); v }
3231 }
3332}
You can’t perform that action at this time.
0 commit comments