Skip to content

Commit ba60374

Browse files
authored
Update extension-methods.md
Fix example of operator usage
1 parent 5e47774 commit ba60374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Examples:
9090
def (x: String) < (y: String) = ...
9191
def (x: Elem) +: (xs: Seq[Elem]) = ...
9292

93-
"ab" + "c"
93+
"ab" < "c"
9494
1 +: List(2, 3)
9595
```
9696
The two definitions above translate to

0 commit comments

Comments
 (0)