Skip to content

Commit 139f0c6

Browse files
authored
Merge pull request #53 from JuliaConstraints/doc
Update doc for JuliaConstraints website
2 parents 8aacfd9 + e067dc8 commit 139f0c6

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/constraints/extension.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Global constraint ensuring that the tuple `x` matches a configuration listed wit
1313
const description_conflicts = """
1414
Global constraint ensuring that the tuple `x` does not match any configuration listed within the conflict set `pair_vars`. This constraint, originating from the extension model, stipulates that `x` must avoid all configurations defined as conflicts: `x ∉ pair_vars`. It is useful for specifying tuples that are explicitly forbidden and should be excluded from the solution space.
1515
"""
16-
16+
xcsp_extension(list, ::Nothing, ::Nothing) = false
1717
xcsp_extension(list, ::Nothing, conflicts) = list conflicts
18-
xcsp_extension(list, supports, _) = list supports
18+
xcsp_extension(list, supports, ::Nothing) = list supports
1919

2020
"""
2121
xcsp_extension(; list, supports=nothing, conflicts=nothing)

src/constraints/intention.jl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,7 @@ concept(:dist_different)(x)
2323
```
2424
2525
# Examples
26-
27-
````@example debug2
28-
2 + 2
29-
````
30-
31-
```@example debug1
32-
2 + 2
33-
```
34-
35-
```@example intention1
36-
using Constraints # hide
37-
c = concept(:dist_different)
38-
c([1, 2, 3, 3]) && !c([1, 2, 3, 4])
39-
```
40-
41-
````@example intention2
26+
````julia
4227
using Constraints # hide
4328
c = concept(:dist_different)
4429
c([1, 2, 3, 3]) && !c([1, 2, 3, 4])

0 commit comments

Comments
 (0)