Skip to content

Commit f6bd712

Browse files
committed
Merge pull request scala#4886 from janekdb/2.11.x-scaladoc-Duration-links
Fix Scaladoc overloaded method link to Duration companion object
2 parents 9a2e712 + 17450e7 commit f6bd712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/scala/concurrent/duration/Duration.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ object Duration {
9494
timeUnitLabels flatMap { case (unit, names) => expandLabels(names) map (_ -> unit) } toMap
9595

9696
/**
97-
* Extract length and time unit out of a string, where the format must match the description for [[Duration$.apply(String):Duration apply(String)]].
97+
* Extract length and time unit out of a string, where the format must match the description for [[Duration$.apply(s:String)* apply(String)]].
9898
* The extractor will not match for malformed strings or non-finite durations.
9999
*/
100100
def unapply(s: String): Option[(Long, TimeUnit)] =
@@ -355,7 +355,7 @@ object Duration {
355355
* - isomorphic to `java.lang.Double` when it comes to infinite or undefined values
356356
*
357357
* The conversion between Duration and Double is done using [[Duration.toUnit]] (with unit NANOSECONDS)
358-
* and [[Duration$.fromNanos(Double):Duration Duration.fromNanos(Double)]].
358+
* and [[Duration$.fromNanos(nanos:Double)* Duration.fromNanos(Double)]]
359359
*
360360
* <h2>Ordering</h2>
361361
*

0 commit comments

Comments
 (0)