Skip to content

Commit 7cf3a25

Browse files
committed
Fix readme example
1 parent d60fc3f commit 7cf3a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn main() {
156156

157157
// Global constraints
158158
let vars = vec![m.int(1, 5), m.int(1, 5), m.int(1, 5)];
159-
m.new(alldiff(vars.clone())); // All different
159+
m.alldiff(&vars.clone()); // All different
160160

161161
// Mathematical functions
162162
let abs_result = m.abs(x);

0 commit comments

Comments
 (0)