Skip to content

Commit 1a62d0a

Browse files
authored
Fix three dead links in spec Types doc chapter (#20337)
This PR most likely fixes three dead links currently served at: [https://scala-lang.org/files/archive/spec/3.4/03-types.html ](https://scala-lang.org/files/archive/spec/3.4/03-types.html) I tried `sbt sbt scaladoc/generateScalaDocumentation` and `sbt scaladoc/generateReferenceDocumentation` to generate the updated documentation but I think some other rule is responsible for that, so I haven't checked that the updated links actually work, but I think they will.
1 parent 836a25a commit 1a62d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/_spec/03-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ An argument type of the form ´\Rightarrow T´ represents a [call-by-name parame
197197

198198
Function types associate to the right, e.g. ´S \Rightarrow T \Rightarrow R´ is the same as ´S \Rightarrow (T \Rightarrow R)´.
199199

200-
Function types are [covariant](04-basic-definitions.md#variance-annotations) in their result type and [contravariant](04-basic-definitions.md#variance-annotations) in their argument types.
200+
Function types are [covariant](04-basic-definitions.html#variance-annotations) in their result type and [contravariant](04-basic-definitions.html#variance-annotations) in their argument types.
201201

202202
Function types translate into internal class types that define an `apply` method.
203203
Specifically, the ´n´-ary function type ´(T_1, ..., T_n) \Rightarrow R´ translates to the internal class type `scala.Function´_n´[´T_1´, ..., ´T_n´, ´R´]`.
@@ -210,7 +210,7 @@ trait Function´_n´[-´T_1´, ..., -´T_n´, +´R´]:
210210
def apply(´x_1´: ´T_1´, ..., ´x_n´: ´T_n´): ´R´
211211
```
212212

213-
Their exact supertype and implementation can be consulted in the [function classes section](./12-the-scala-standard-library.md#the-function-classes) of the standard library page in this document.
213+
Their exact supertype and implementation can be consulted in the [function classes section](./12-the-scala-standard-library.html#the-function-classes) of the standard library page in this document.
214214

215215
_Dependent function types_ are function types whose parameters are named and can referred to in result types.
216216
In the concrete type ´(x_1: T_1, ..., x_n: T_n) \Rightarrow R´, ´R´ can refer to the parameters ´x_i´, notably to form path-dependent types.

0 commit comments

Comments
 (0)