Skip to content

Commit 114d3bf

Browse files
authored
Merge pull request #6069 from newca12/fix-docs
Fix broken links and typo
2 parents cb3134a + 79a6675 commit 114d3bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/reference/contextual/typeclasses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ implied for Monoid[String] {
2727

2828
implied for Monoid[Int] {
2929
def (x: Int) combine (y: Int): Int = x + y
30-
def unit: String = 0
30+
def unit: Int = 0
3131
}
3232

3333
def sum[T: Monoid](xs: List[T]): T =

docs/docs/reference/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ The primary goal of the language constructs in this section is to make the langu
2727
be deprecated in the future). Intersection types are one of the core features of DOT. They
2828
are commutative: `A & B` and `B & A` represent the same type.
2929

30-
- [Implicit function types](http://dotty.epfl.ch/docs/reference/new-types/implicit-function-types.html) `implicit A => B`.
30+
- [Context query types](http://dotty.epfl.ch/docs/reference/contextual/query-types.html) `given A => B`.
3131

3232
Methods and lambdas can have implicit parameters, so it's natural to extend the
33-
same property to function types. Implicit function types help ergonomics and performance
33+
same property to function types. context query types help ergonomics and performance
3434
as well. They can replace many uses of monads, offering better composability and an order of magnitude improvement in runtime speed.
3535

3636
- [Dependent function types](http://dotty.epfl.ch/docs/reference/new-types/dependent-function-types.html) `(x: T) => x.S`.
@@ -59,7 +59,7 @@ Listed in this section are new language constructs that help precise, typechecke
5959
precise domain modeling. They are also very useful for interoperating with
6060
Javascript libraries and JSON protocols.
6161

62-
- [Multiversal Equality](http://dotty.epfl.ch/docs/reference/other-new-features/multiversal-equality.html)
62+
- [Multiversal Equality](http://dotty.epfl.ch/docs/reference/contextual/multiversal-equality.html)
6363

6464
Multiversal equality is an opt-in way to check that comparisons using `==` and
6565
`!=` only apply to compatible types. It thus removes the biggest remaining hurdle

0 commit comments

Comments
 (0)