Skip to content

Commit b89e00a

Browse files
authored
Merge pull request #2702 from ferhtaydn/patch-1
Fix typo in implicit function docs
2 parents 4882762 + 36655d3 commit b89e00a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/reference/changed/implicit-conversions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ its type checking because this turns out to be more efficient).
3131

3232
In summary, previous code using implicit conversion parameters such as
3333

34-
def useConversion(implicit f: A => B) {
34+
def useConversion(implicit f: A => B) = {
3535
val y: A = ...
3636
val x: B = a // error under Dotty
3737
}
3838

3939
is no longer legal and has to be rewritten to
4040

41-
def useConversion(implicit f: ImplicitConverter[A, B]) {
41+
def useConversion(implicit f: ImplicitConverter[A, B]) = {
4242
val y: A = ...
43-
val x: B = a // OK
43+
val x: B = y // OK
4444
}
4545

4646
### Reference

docs/docs/reference/changed/implicit-resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Changes in Implicit Resolution"
44
---
55

66
Implicit resolution uses a new algorithm which caches implicit results
7-
more aggressively for perforance. There are also some changes that
7+
more aggressively for performance. There are also some changes that
88
affect implicits on the language level.
99

1010
1. Types of implicit values and result types of implicit methods

0 commit comments

Comments
 (0)