Skip to content

Commit 1b55033

Browse files
authored
Merge pull request #710 from codeZeilen/master
Corrects a mistake in the article on implicit conversions
2 parents bcef8df + b87a883 commit 1b55033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tour/_posts/2017-02-13-implicit-conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An implicit conversion from type `S` to type `T` is defined by an implicit value
1616
Implicit conversions are applied in two situations:
1717

1818
* If an expression `e` is of type `S`, and `S` does not conform to the expression's expected type `T`.
19-
* In a selection `e.m` with `e` of type `T`, if the selector `m` does not denote a member of `T`.
19+
* In a selection `e.m` with `e` of type `S`, if the selector `m` does not denote a member of `S`.
2020

2121
In the first case, a conversion `c` is searched for which is applicable to `e` and whose result type conforms to `T`.
2222
In the second case, a conversion `c` is searched for which is applicable to `e` and whose result contains a member named `m`.

0 commit comments

Comments
 (0)