Skip to content

Commit 372696a

Browse files
committed
Spelling
1 parent 41d76c9 commit 372696a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
# Constraints.jl
1010

11-
A back-end pacage for JuliaConstraints front packages, such as `LocalSearchSolvers.jl`.
11+
A back-end package for JuliaConstraints front packages, such as `LocalSearchSolvers.jl`.
1212

1313
It provides the following features:
14-
- A dictionary to store usual constraint: `usual_contraint`, which contains the following entries
14+
- A dictionary to store usual constraint: `usual_constraint`, which contains the following entries
1515
- `:all_different`
1616
- `:dist_different`
1717
- `:eq`, `:all_equal`, `:all_equal_param`
@@ -23,7 +23,7 @@ It provides the following features:
2323
- error (a function that evaluate how much `c` is violated)
2424
- parameters length
2525
- known symmetries of `c`
26-
- A learning function using `CompositionalNetworks.jl`. If no error function is given when instanciating `c`, it will check the existence of a composition related to `c` and set the error to it.
26+
- A learning function using `CompositionalNetworks.jl`. If no error function is given when instantiating `c`, it will check the existence of a composition related to `c` and set the error to it.
2727

2828
## Contributing
2929

src/constraint.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const USUAL_SYMMETRIES = Dict(:permutable => sort)
66

77
"""
88
Constraint
9-
Parametric stucture with the following fields.
9+
Parametric structure with the following fields.
1010
- `concept`: a Boolean function that, given an assignment `x`, outputs `true` if `x` satisfies the constraint, and `false` otherwise.
11-
- `error`: a positive function that works as preferences over invalid assignements. Return `0.0` if the constraint is satisfied, and a strictly positive real otherwise.
11+
- `error`: a positive function that works as preferences over invalid assignments. Return `0.0` if the constraint is satisfied, and a strictly positive real otherwise.
1212
"""
1313
mutable struct Constraint{FConcept <: Function, FError <: Function}
1414
args::Int

0 commit comments

Comments
 (0)