Skip to content

Commit dba516c

Browse files
committed
fixed scaladoc comment
1 parent 92c0bb9 commit dba516c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/scala/scala/collection/next/package.scala

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)