1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-05 07:37:09 +03:00

Update doc/manual/contracts.md

Co-authored-by: Arnaud Spiwack <arnaud.spiwack@tweag.io>
This commit is contained in:
Yann Hamdaoui 2022-02-18 16:23:39 +01:00 committed by GitHub
parent efd5e414d5
commit d79573d950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ A custom contract is a function of two arguments:
- A `label`. Provided by the interpreter, the label contains tracking information
for error reporting. Its main usage is to be passed to `contracts.blame` or
`contracts.blame_with` when the contract isn't satisfied.
- The tested value.
- The value being checked.
Upon success, the contract must return the original value. It may seem strange
and kinda pointless for now, but we will see the motivation behind this design