Dhall.JSON: Update documentation of Nesting type (#1385)

This commit is contained in:
Simon Jakobi 2019-10-04 18:28:33 +02:00 committed by GitHub
parent 613a44d512
commit 6a8e7e12cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@
* @field@: the name of the field that will store the name of the
alternative
* @nesting@: A value of type @\< Inline : {} | Nested : Text \>@.
* @nesting@: A value of type @\< Inline | Nested : Text \>@.
If @nesting@ is set to @Inline@ and the union literal stored in @contents@
contains a record then the name of the alternative is stored inline within
@ -144,7 +144,7 @@
> let Example = < Left : { foo : Natural } | Right : { bar : Bool } >
>
> let Nesting = < Inline : {} | Nested : Text >
> let Nesting = < Inline | Nested : Text >
>
> in { field = "name"
> , nesting = Nesting.Nested "value"