From ecfb4457ad0c56a1c1adadbd0e790d40a74bf9b6 Mon Sep 17 00:00:00 2001 From: Martin Duhem Date: Wed, 31 Oct 2018 08:30:29 +0100 Subject: [PATCH] Don't mention `scala.Predef.Pair` from the Tour `Pair` is deprecated since 2.11 and removed in 2.13. --- _tour/implicit-conversions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/implicit-conversions.md b/_tour/implicit-conversions.md index 840c7cec07..be7f2edf6f 100644 --- a/_tour/implicit-conversions.md +++ b/_tour/implicit-conversions.md @@ -42,7 +42,7 @@ implicit def list2ordered[A](x: List[A]) } ``` -The implicitly imported object `scala.Predef` declares several predefined types (e.g. `Pair`) and methods (e.g. `assert`) but also several implicit conversions. +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. 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: