Skip to content

Commit bcb58a6

Browse files
raymondtayallanrenucci
authored andcommitted
Removed extra pair of parens
1 parent d3c6605 commit bcb58a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)