diff --git a/docs/docs/reference/changed/structural-types.md b/docs/docs/reference/changed/structural-types.md index ea7311258896..d51f73c20ed0 100644 --- a/docs/docs/reference/changed/structural-types.md +++ b/docs/docs/reference/changed/structural-types.md @@ -66,7 +66,7 @@ current implementation of structural types. The main difference is that to get reflection-based structural access one now has to add an import: - import scala.relect.Selectable.reflectiveSelectable + import scala.reflect.Selectable.reflectiveSelectable On the other hand, the previously required language feature import of `reflectiveCalls` is now redundant and is therefore dropped. @@ -92,7 +92,7 @@ For illustration, let's define a record value and cast it to a structural type `Person`: type Person = Record { val name: String; val age: Int } - val person = Record(("name" -> "Emma", "age" -> 42)).asInstanceOf[Person] + val person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person] Then `person.name` will have static type `String`, and will produce `"Emma"` as result. @@ -130,4 +130,4 @@ differences. ### Reference -For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886). \ No newline at end of file +For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886).