We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c6605 commit bcb58a6Copy full SHA for bcb58a6
docs/docs/reference/changed/structural-types.md
@@ -92,7 +92,7 @@ For illustration, let's define a record value and cast it to a
92
structural type `Person`:
93
94
type Person = Record { val name: String; val age: Int }
95
- val person = Record(("name" -> "Emma", "age" -> 42)).asInstanceOf[Person]
+ val person = Record("name" -> "Emma", "age" -> 42).asInstanceOf[Person]
96
97
Then `person.name` will have static type `String`, and will produce `"Emma"` as result.
98
0 commit comments