mirror of
https://github.com/tweag/nickel.git
synced 2024-10-05 15:47:33 +03:00
Update doc/manual/typing.md
Co-authored-by: Arnaud Spiwack <arnaud.spiwack@tweag.io>
This commit is contained in:
parent
2beb885a40
commit
8fbc6b2ad5
@ -127,7 +127,7 @@ error: Incompatible types
|
|||||||
= These types are not compatible
|
= These types are not compatible
|
||||||
```
|
```
|
||||||
|
|
||||||
That's already better! The error now points at the call site, and inside our
|
This is already better! The error now points at the call site, and inside our
|
||||||
anonymous functions, telling us it is expected to return a boolean. What's more,
|
anonymous functions, telling us it is expected to return a boolean. What's more,
|
||||||
we just had to give the top-level annotation `List Num`. Nickel performs type
|
we just had to give the top-level annotation `List Num`. Nickel performs type
|
||||||
inference, so that you don't have to write the type for `filter`, the filtering
|
inference, so that you don't have to write the type for `filter`, the filtering
|
||||||
|
Loading…
Reference in New Issue
Block a user