Skip to content

Commit

Permalink
Fix some leftover instances of the old enum syntax in the manual (#1548)
Browse files Browse the repository at this point in the history
* Fix some leftover instances of the old enum syntax in the manual

* Update doc/manual/syntax.md

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

---------

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
  • Loading branch information
vkleen and yannham authored Aug 28, 2023
1 parent 9e6dc8c commit 7299264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/manual/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ Here are some examples of type annotations in Nickel:
error: incompatible types
[..]
> (1 + 1 : Number) + ((`foo |> match { `foo => 1, _ => 2 }) : Number)
> (1 + 1 : Number) + (('foo |> match { 'foo => 1, _ => 2 }) : Number)
3
> let x : Number = "a" in x
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ The following type constructors are available:
```

- **Enum**: ``[| 'tag1, .., 'tagn |]``: an enumeration comprised of alternatives
`tag1`, .., `tagn`. An enumeration literal is prefixed with a backtick and
`tag1`, .., `tagn`. An enumeration literal is prefixed with a single quote and
serialized as a string. It is useful to encode finite alternatives. The
advantage over strings is that the typechecker handles them more finely: it is
able to detect incomplete matches, for example.
Expand Down

0 comments on commit 7299264

Please sign in to comment.