Skip to content

Commit c96693e

Browse files
mpvlcueckoo
authored andcommitted
doc/ref/spec.md: support unary == bound
As proposed. Issue #2583 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I6be40dca61111fbc68426ec03e756e21acd5004b Dispatch-Trailer: {"type":"trybot","CL":1217014,"patchset":12,"ref":"refs/changes/14/1217014/12","targetBranch":"master"}
1 parent 20b4193 commit c96693e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/ref/spec.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ A _bound_, syntactically a [unary expression](#operands), defines
987987
a logically infinite disjunction of concrete values represented as a single comparison.
988988
For example, `>= 2` represents the infinite disjunction `2|3|4|5|6|7|…`.
989989

990-
For any [comparison operator](#comparison-operators) `op` except `==`,
990+
For any [comparison operator](#comparison-operators) `op`,
991991
`op a` is the disjunction of every `x` such that `x op a`.
992992

993993

@@ -1002,7 +1002,8 @@ int & 2 & >1.0 & <3.0 // _|_
10021002
2.5 & >=(int & 1) & <5 // _|_
10031003
>=0 & <=7 & >=3 & <=10 // >=3 & <=7
10041004
!=null & 1 // 1
1005-
>=5 & <=5 // 5
1005+
==[1, 2] & [1] // _|_
1006+
!=[1, 2] & [1] // [1]
10061007
```
10071008

10081009

0 commit comments

Comments
 (0)