summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJanek Bogucki <janekdb@gmail.com>2015-12-18 22:33:48 +0000
committerJanek Bogucki <janekdb@gmail.com>2016-01-04 20:43:44 +0000
commit17450e731ca230a0236efdd0c7d550b5d1f54026 (patch)
tree07e1fe47cd698e4bffd8be68d859f521a76e27f3 /src
parent6792b57152e70fd818db84829c0fb3d8e3899c26 (diff)
downloadscala-17450e731ca230a0236efdd0c7d550b5d1f54026.tar.gz
scala-17450e731ca230a0236efdd0c7d550b5d1f54026.tar.bz2
scala-17450e731ca230a0236efdd0c7d550b5d1f54026.zip
Fix Scaladoc overloaded method link to Duration companion object
The links were being skipped with a warning before this commit. The key change was to remove the result type and add an asterisk.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/concurrent/duration/Duration.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/concurrent/duration/Duration.scala b/src/library/scala/concurrent/duration/Duration.scala
index 182c2d172a..e68a897f82 100644
--- a/src/library/scala/concurrent/duration/Duration.scala
+++ b/src/library/scala/concurrent/duration/Duration.scala
@@ -94,7 +94,7 @@ object Duration {
timeUnitLabels flatMap { case (unit, names) => expandLabels(names) map (_ -> unit) } toMap
/**
- * Extract length and time unit out of a string, where the format must match the description for [[Duration$.apply(String):Duration apply(String)]].
+ * Extract length and time unit out of a string, where the format must match the description for [[Duration$.apply(s:String)* apply(String)]].
* The extractor will not match for malformed strings or non-finite durations.
*/
def unapply(s: String): Option[(Long, TimeUnit)] =
@@ -355,7 +355,7 @@ object Duration {
* - isomorphic to `java.lang.Double` when it comes to infinite or undefined values
*
* The conversion between Duration and Double is done using [[Duration.toUnit]] (with unit NANOSECONDS)
- * and [[Duration$.fromNanos(Double):Duration Duration.fromNanos(Double)]].
+ * and [[Duration$.fromNanos(nanos:Double)* Duration.fromNanos(Double)]]
*
* <h2>Ordering</h2>
*