1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-04 23:27:15 +03:00

fix: Remark about the - operator

This commit is contained in:
milahu 2022-03-18 12:34:14 +01:00 committed by GitHub
parent 9f44458b11
commit 245dc04adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ There are a some predefined operators for working with numbers :
> **Remark about the `-` operator:**
> Since `-` can be used inside an identifier, the subtraction operators **needs** to be surrounded by spaces:
> write `1 - 1`, not `1-1`.
> write `a - b`, not `a-b`. `1-2` works as expected, because `1` and `2` are no identifiers.
Numbers can be compared using the following operators :
| Operator | Description | Example |