Skip to content

Commit a3e2621

Browse files
committed
doc(tupled): improve scaladoc of tupled/untupled
1 parent d4f5548 commit a3e2621

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/other-new-features/tupled-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following defines `tupled` as [extension method](../contextual/extension-met
3838

3939
```scala
4040
/** Creates a tupled version of this function: instead of N arguments,
41-
* it accepts a single [[scala.Tuple]]N argument.
41+
* it accepts a single [[scala.Tuple]] with N elements as argument.
4242
*
4343
* @tparam F the function type
4444
* @tparam Args the tuple type with the same types as the function arguments of F
@@ -50,7 +50,7 @@ def [F, Args <: Tuple, R](f: F).tupled(using tf: TupledFunction[F, Args => R]):
5050
`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))
5151

5252
```scala
53-
/** Creates an untupled version of this function: instead of a single [[scala.Tuple]]N argument,
53+
/** Creates an untupled version of this function: instead of a single argument of type [[scala.Tuple]] with N elements,
5454
* it accepts N arguments.
5555
*
5656
* This is a generalization of [[scala.Function.untupled]] that work on functions of any arity

0 commit comments

Comments
 (0)