Skip to content

Commit a5b4793

Browse files
committed
For extension label, avoid scala style
1 parent a82af21 commit a5b4793

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
@@ -24,7 +24,7 @@ circle.circumference
2424
An extension method translates to a specially labelled method that takes the leading parameter section as its first argument list. The label, expressed
2525
as `<extension>` here, is compiler-internal. So, the definition of `circumference` above translates to the following method, and can also be invoked as such:
2626

27-
```scala
27+
```
2828
<extension> def circumference(c: Circle): Double = c.radius * math.Pi * 2
2929
3030
assert(circle.circumference == circumference(circle))
@@ -49,7 +49,7 @@ x min 3
4949

5050
The three definitions above translate to
5151

52-
```scala
52+
```
5353
<extension> def < (x: String)(y: String): Boolean = ...
5454
<extension> def +: (xs: Seq[Elem])(x: Elem): Seq[Elem] = ...
5555
<extension> infix def min(x: Number)(y: Number): Number = ...

0 commit comments

Comments
 (0)