From b7eef8e7b48e7b3d394bda3ec2ec42209feee162 Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Wed, 25 Nov 2020 09:35:34 -0800 Subject: [PATCH] Fix broken documentation links as reported in #10465 --- docs/docs/reference/enums/desugarEnums.md | 2 +- docs/docs/reference/features-classification.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/reference/enums/desugarEnums.md b/docs/docs/reference/enums/desugarEnums.md index 1da1a58007b6..beed276b92ff 100644 --- a/docs/docs/reference/enums/desugarEnums.md +++ b/docs/docs/reference/enums/desugarEnums.md @@ -155,7 +155,7 @@ map into `case class`es or `val`s. case C(ps) extends P1, ..., Pn ``` are treated specially. A call `C(ts)` of the apply method is ascribed the underlying type - `P1 & ... & Pn` (dropping any [super traits](../other-new-features/mixin-traits.md)) + `P1 & ... & Pn` (dropping any [transparent traits](../other-new-features/transparent-traits.md)) as long as that type is still compatible with the expected type at the point of application. A call `t.copy(ts)` of `C`'s `copy` method is treated in the same way. diff --git a/docs/docs/reference/features-classification.md b/docs/docs/reference/features-classification.md index f831aca713dc..6a3969f37fcb 100644 --- a/docs/docs/reference/features-classification.md +++ b/docs/docs/reference/features-classification.md @@ -35,9 +35,9 @@ Since these are additions, there's generally no migration cost for old code. An These constructs replace existing constructs with the aim of making the language safer and simpler to use, and to promote uniformity in code style. - [Trait Parameters](other-new-features/trait-parameters.md) replace [early initializers](dropped-features/early-initializers.md) with a more generally useful construct. - - [Given Instances](contextual/delegates.md) + - [Given Instances](contextual/givens.md) replace implicit objects and defs, focussing on intent over mechanism. - - [Given Clauses](contextual/given-clauses.md) replace implicit parameters, avoiding their ambiguities. + - [Using Clauses](contextual/using-clauses.md) replace implicit parameters, avoiding their ambiguities. - [Extension Methods](contextual/extension-methods.md) replace implicit classes with a clearer and simpler mechanism. - [Opaque Type Aliases](other-new-features/opaques.md) replace most uses of value classes while guaranteeing absence of boxing.