From d3c66056cc6f8c5f7c612fc2d32795dc47d40b71 Mon Sep 17 00:00:00 2001 From: Raymond Tay Date: Sun, 3 Sep 2017 10:43:11 +0800 Subject: [PATCH 1/2] corrected a small typo --- docs/docs/reference/changed/structural-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/reference/changed/structural-types.md b/docs/docs/reference/changed/structural-types.md index ea7311258896..022cf61016e9 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. @@ -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). From bcb58a6c19d22debbe8782f7299de655789734af Mon Sep 17 00:00:00 2001 From: Raymond Tay Date: Sun, 3 Sep 2017 10:58:54 +0800 Subject: [PATCH 2/2] Removed extra pair of parens --- docs/docs/reference/changed/structural-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/changed/structural-types.md b/docs/docs/reference/changed/structural-types.md index 022cf61016e9..d51f73c20ed0 100644 --- a/docs/docs/reference/changed/structural-types.md +++ b/docs/docs/reference/changed/structural-types.md @@ -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.