Skip to content

Commit 4826595

Browse files
committed
Test and update doc (@example)
1 parent 47d9c12 commit 4826595

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/constraints/intension.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ concept(:dist_different)(x)
2323
```
2424
2525
# Examples
26-
```julia
26+
27+
```@example intention
2728
c = concept(:dist_different)
28-
c([1, 2, 3, 3]) # true
29-
c([1, 2, 3, 4]) # false
29+
c([1, 2, 3, 3]) && !c([1, 2, 3, 4])
3030
```
31+
3132
"""
3233
xcsp_intension(; list, predicate) = predicate(list)
3334

0 commit comments

Comments
 (0)