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
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ in a type expression:
For example:
* `list(string)`
* `object({"name":string,"age":number})`
* `map(object({"name":string,"age":number}))`
* `object({name=string,age=number})`
* `map(object({name=string,age=number}))`
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.