aboutsummaryrefslogtreecommitdiff
path: root/latin.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-06 18:34:47 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-06 18:37:23 +0000
commit3189fb484dcfe4efe42b2b30e529389db9dd0d00 (patch)
tree655d1c48146618cc6b76fc84b07cab555a7789d8 /latin.h
parentbaed0e3eec513aa148afaea950b43a4f8b8d2734 (diff)
downloadpuzzles-3189fb484dcfe4efe42b2b30e529389db9dd0d00.zip
puzzles-3189fb484dcfe4efe42b2b30e529389db9dd0d00.tar.gz
puzzles-3189fb484dcfe4efe42b2b30e529389db9dd0d00.tar.bz2
puzzles-3189fb484dcfe4efe42b2b30e529389db9dd0d00.tar.xz
Fix an inaccurate comment.
latin_solver_diff_set takes a boolean input parameter to indicate whether the 'Extreme'-level variant of set elimination is permitted. But it's commented in the header file as having a boolean _output_ parameter which it sets if it _ended up_ using that variant. Probably the latter was how it worked in an early draft, and I changed my mind later without changing the comment.
Diffstat (limited to 'latin.h')
-rw-r--r--latin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/latin.h b/latin.h
index e13050e..747cfb6 100644
--- a/latin.h
+++ b/latin.h
@@ -78,8 +78,8 @@ void latin_solver_free_scratch(struct latin_solver_scratch *scratch);
/* Looped positional elimination */
int latin_solver_diff_simple(struct latin_solver *solver);
-/* Looped set elimination; *extreme is set if it used
- * the more difficult single-number elimination. */
+/* Looped set elimination; extreme permits use of the more difficult
+ * single-number elimination. */
int latin_solver_diff_set(struct latin_solver *solver,
struct latin_solver_scratch *scratch,
int extreme);