Skip to content

Commit 51977d7

Browse files
committed
doc(tupled): typos
1 parent 303411e commit 51977d7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 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]] argument.
41+
* it accepts a single [[scala.Tuple]]N argument.
4242
*
4343
* @tparam F the function type
4444
* @tparam Args the tuple type with the same types as the function arguments of F
@@ -47,11 +47,11 @@ The following defines `tupled` as [extension method](../contextual/extension-met
4747
def [F, Args <: Tuple, R](f: F).tupled(using tf: TupledFunction[F, Args => R]): Args => R = tf.tupled(f)
4848
```
4949

50-
`TupledFunction` can be used to generalize the `Function.untupled` methods to functions of any arities ([full example](https://github.com/lampepfl/dotty/blob/master/tests/run/tupled-function-untupled.scala))
50+
`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 single [[scala.Tuple]] argument,
54-
* it accepts a N arguments.
53+
/** Creates an untupled version of this function: instead of a single [[scala.Tuple]]N argument,
54+
* it accepts N arguments.
5555
*
5656
* This is a generalization of [[scala.Function.untupled]] that work on functions of any arity
5757
*
@@ -65,7 +65,7 @@ def [F, Args <: Tuple, R](f: Args => R).untupled(using tf: TupledFunction[F, Arg
6565
`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.
6666

6767
```scala
68-
/** Composes two instances of TupledFunctions in a new TupledFunctions, with this function applied last
68+
/** Composes two instances of TupledFunction into a new TupledFunction, with this function applied last.
6969
*
7070
* @tparam F a function type
7171
* @tparam G a function type

0 commit comments

Comments
 (0)