Skip to content

Commit 4542aef

Browse files
committed
Fix links in docs
1 parent 0b91d4e commit 4542aef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/reference/other-new-features/tupled-function.md renamed to docs/docs/reference/experimental/tupled-function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The compiler will synthesize an instance of `TupledFunction[F, G]` if:
3434
Examples
3535
--------
3636
`TupledFunction` can be used to generalize the `Function1.tupled`, ... `Function22.tupled` methods to functions of any arities.
37-
The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-tupled.scala)).
37+
The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-tupled.scala)).
3838

3939
```scala
4040
/** Creates a tupled version of this function: instead of N arguments,
@@ -48,7 +48,7 @@ extension [F, Args <: Tuple, R](f: F)
4848
def tupled(using tf: TupledFunction[F, Args => R]): Args => R = tf.tupled(f)
4949
```
5050

51-
`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-untupled.scala))
51+
`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-untupled.scala))
5252

5353
```scala
5454
/** Creates an untupled version of this function: instead of a single argument of type [[scala.Tuple]] with N elements,
@@ -64,7 +64,7 @@ extension [F, Args <: Tuple, R](f: Args => R)
6464
def untupled(using tf: TupledFunction[F, Args => R]): F = tf.untupled(f)
6565
```
6666

67-
`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples.
67+
`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples.
6868

6969
```scala
7070
/** Composes two instances of TupledFunction into a new TupledFunction, with this function applied last.

docs/sidebar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ sidebar:
116116
- page: docs/reference/experimental/named-typeargs.md
117117
- page: docs/reference/experimental/numeric-literals.md
118118
- page: docs/reference/experimental/explicit-nulls.md
119-
- page: docs/reference/other-new-features/tupled-function.md
119+
- page: docs/reference/experimental/tupled-function.md
120120
- page: docs/reference/syntax.md
121121
- title: Language Versions
122122
index: docs/reference/language-versions/language-versions.md

0 commit comments

Comments
 (0)