Skip to content

Commit ecfb445

Browse files
committed
Don't mention scala.Predef.Pair from the Tour
`Pair` is deprecated since 2.11 and removed in 2.13.
1 parent 26c7952 commit ecfb445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/implicit-conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ implicit def list2ordered[A](x: List[A])
4242
}
4343
```
4444

45-
The implicitly imported object `scala.Predef` declares several predefined types (e.g. `Pair`) and methods (e.g. `assert`) but also several implicit conversions.
45+
The implicitly imported object `scala.Predef` declares several aliases to frequently used types (e.g. `scala.collection.immutable.Map` is aliased to `Map`) and methods (e.g. `assert`) but also several implicit conversions.
4646

4747
For example, when calling a Java method that expects a `java.lang.Integer`, you are free to pass it a `scala.Int` instead. That's because Predef includes the following implicit conversions:
4848

0 commit comments

Comments
 (0)