Skip to content

Commit 9e8f0fe

Browse files
committed
Fix implied leftover at docs
1 parent ed514bb commit 9e8f0fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/reference/contextual/import-implied.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import delegate A.{for TC}
3939
This imports any delegate in `A` that has a type which conforms tp `TC`. There can be several bounding types following a `for` and bounding types can contain wildcards.
4040
For instance, assuming the object
4141
```scala
42-
object Instances {
42+
object Delegates {
4343
delegate intOrd for Ordering[Int]
4444
delegate [T: Ordering] listOrd for Ordering[List[T]]
4545
delegate ec for ExecutionContext = ...
@@ -48,7 +48,7 @@ object Instances {
4848
```
4949
the import
5050
```
51-
import delegate Instances.{for Ordering[_], ExecutionContext}
51+
import delegate Delegates.{for Ordering[_], ExecutionContext}
5252
```
5353
would import the `intOrd`, `listOrd`, and `ec` delegates but leave out the `im` delegate, since it fits none of the specified bounds.
5454

docs/docs/reference/features-classification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Since these are additions, there's generally no migration cost for old code. An
3636
These constructs replace existing constructs with the aim of making the language safer and simpler to use, and to promote uniformity in code style.
3737

3838
- [Trait Parameters](https://dotty.epfl.ch/docs/reference/other-new-features/trait-parameters.html) replace [early initializers](https://dotty.epfl.ch/docs/reference/dropped-features/early-initializers.html) with a more generally useful construct.
39-
- [Implied Instances](https://dotty.epfl.ch/docs/reference/contextual/instance-defs.html)
39+
- [Delegates](https://dotty.epfl.ch/docs/reference/contextual/instance-defs.html)
4040
replace implicit objects and defs, focussing on intent over mechanism.
4141
- [Given Clauses](https://dotty.epfl.ch/docs/reference/contextual/inferable-params.html) replace implicit parameters, avoiding their ambiguities.
4242
- [Extension Methods](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html) replace implicit classes with a clearer and simpler mechanism.
@@ -71,7 +71,7 @@ For the next several versions, old features will remain available and deprecatio
7171
These constructs are restricted to make the language safer.
7272

7373
- [Implicit Conversions](https://dotty.epfl.ch/docs/reference/contextual/conversions.html): there is only one way to define implicit conversions instead of many, and potentially surprising implicit conversions require a language import.
74-
- [Import Implied](https://dotty.epfl.ch/docs/reference/contextual/import-implied.html): implicits now require a special form of import, to make the import clearly visible.
74+
- [Delegate Imports](https://dotty.epfl.ch/docs/reference/contextual/import-implied.html): implicits now require a special form of import, to make the import clearly visible.
7575
- [Type Projection](https://dotty.epfl.ch/docs/reference/dropped-features/type-projection.html): only classes can be used as prefix `C` of a type projection `C#A`. Type projection on abstract types is no longer supported since it is unsound.
7676
- [Multiversal Equality](https://dotty.epfl.ch/docs/reference/contextual/multiversal-equality.html) implements an "opt-in" scheme to rule out nonsensical comparisons with `==` and `!=`.
7777
- [@infix and @alpha](https://github.com/lampepfl/dotty/pull/5975)

0 commit comments

Comments
 (0)