From 8872451544f72fc2494efbed58b760b6a012e7f2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 17 Apr 2025 17:30:21 +0200 Subject: [PATCH] Improve comments. * src/search.cc: Fix comments. --- ChangeLog | 5 +++++ src/search.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e2ac3bc..6499ee4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2025-04-17 Bruno Haible + + Improve comments. + * src/search.cc: Fix comments. + 2025-04-16 Bruno Haible build: Update after gnulib changed. diff --git a/src/search.cc b/src/search.cc index 95bfd0f..6ddfaa3 100644 --- a/src/search.cc +++ b/src/search.cc @@ -922,7 +922,7 @@ Search::prepare_asso_values () is the set of characters c with _occurrences[c] > 0. At the end, C is empty.) To each keyword K, we associate the multiset of _selchars for which the _asso_values[] are undetermined: - K --> K->_selchars intersect C. + K --> K->_selchars ∩ C. Consider two keywords equivalent if their value under this mapping is the same. This introduces an equivalence relation on the set of keywords. The equivalence classes partition the keyword set. (At the @@ -1206,7 +1206,7 @@ Search::find_asso_values () determined[c] = false; } - /* main_c must be one of these. */ + /* chosen_c must be one of these. */ if (determined[chosen_c]) abort ();