Skip to content

Commit 9d0d991

Browse files
committed
Fix Fix Fix docs/docs
1 parent 66a508b commit 9d0d991

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/docs/reference/other-new-features/generalized-method-syntax.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: doc-page
33
title: "Generalized Method Syntax"
4-
movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/generalyzed-method-syntax.html
4+
movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/generalized-method-syntax.html
55
---
66

77
The inclusion of using clauses is not the only way in which methods have been updated, type parameter clauses are now allowed in any number and at any position.
@@ -13,7 +13,7 @@ The inclusion of using clauses is not the only way in which methods have been up
1313
The old syntax only allowed zero or one type parameter clause, followed by any number of term clauses, optionnally followed by an implicit clause:
1414

1515
```scala
16-
def foo[T, U](x: T)(y: U)(z: Int, s:String)(a: Array[T])(implicit List[U])
16+
def foo[T, U](x: T)(y: U)(z: Int, s: String)(a: Array[T])(implicit List[U])
1717
```
1818

1919
### In Scala 3
@@ -45,7 +45,7 @@ trait DB {
4545
}
4646
```
4747

48-
Note that simply replacing `V` by `k.Value` would not be equivalent, the above allows for example, assuming `k.Value` is `Int`:
48+
Note that simply replacing `V` by `k.Value` would not be equivalent. For example, if `k.Value` is `Int`, the above allows:
4949
`getOrElse(k)[Number](0.1)`, which returns a `Number`.
5050

5151
### Partial Inference

0 commit comments

Comments
 (0)