ext/typeexpr: correct examples in the README

This commit is contained in:
Martin Atkins 2018-04-05 19:34:53 -07:00 committed by GitHub
parent 5f8ed954ab
commit 9db880accf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,8 +55,8 @@ in a type expression:
For example: For example:
* `list(string)` * `list(string)`
* `object({"name":string,"age":number})` * `object({name=string,age=number})`
* `map(object({"name":string,"age":number}))` * `map(object({name=string,age=number}))`
Note that the object constructor syntax is not fully-general for all possible Note that the object constructor syntax is not fully-general for all possible
object types because it requires the attribute names to be valid identifiers. object types because it requires the attribute names to be valid identifiers.