Skip to content

Commit 64efaa1

Browse files
authored
doc(extension-method): re-add visible under a simple name
1 parent 739a4af commit 64efaa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/contextual/extension-methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ assert(circle.circumference == circumference(circle))
3434

3535
When is an extension method applicable? There are two possibilities:
3636

37-
1. An extension method is applicable if it is visible, by being defined
37+
1. An extension method is applicable if it is visible under a simple name, by being defined
3838
or inherited or imported in a scope enclosing the application.
3939
2. An extension method is applicable if it is a member of some given instance at the point of the application.
4040

41-
Following an example for the first point:
41+
Here is an example for the first rule:
4242

4343
```scala
4444
trait IntOps {

0 commit comments

Comments
 (0)