Skip to content

Commit d6b7812

Browse files
authored
Merge pull request #3086 from allanrenucci/raymondtay
Fix Documentation
2 parents b300826 + bcb58a6 commit d6b7812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/changed/structural-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ current implementation of structural types. The main difference is
6666
that to get reflection-based structural access one now has to add an
6767
import:
6868

69-
import scala.relect.Selectable.reflectiveSelectable
69+
import scala.reflect.Selectable.reflectiveSelectable
7070

7171
On the other hand, the previously required language feature import of
7272
`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
9292
structural type `Person`:
9393

9494
type Person = Record { val name: String; val age: Int }
95-
val person = Record(("name" -> "Emma", "age" -> 42)).asInstanceOf[Person]
95+
val person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person]
9696

9797
Then `person.name` will have static type `String`, and will produce `"Emma"` as result.
9898

@@ -130,4 +130,4 @@ differences.
130130

131131
### Reference
132132

133-
For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886).
133+
For more info, see [Issue #1886](https://github.com/lampepfl/dotty/issues/1886).

0 commit comments

Comments
 (0)