diff options
author | Daniel Gustafsson | 2022-09-05 09:11:18 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2022-09-05 09:11:18 +0000 |
commit | 6dc0738812c3fdbd733d917267a0543ab5fdf997 (patch) | |
tree | 5cb62ea1d4925baf5aa9f927be4fabcd2de6583d | |
parent | ae4fc52ae24785f51e3dc5a4c7e5b4d206356bdc (diff) |
Update out of date comments in pg_trgm
Commit be8a7a68662 changed the check_only parameter to a flag array
but missed updating all comments. Update, and fix a related typo.
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | contrib/pg_trgm/trgm_op.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c index c140fcdbbe8..2aeaa0ecc50 100644 --- a/contrib/pg_trgm/trgm_op.c +++ b/contrib/pg_trgm/trgm_op.c @@ -442,14 +442,15 @@ comp_ptrgm(const void *v1, const void *v2) /* * Iterative search function which calculates maximum similarity with word in - * the string. But maximum similarity is calculated only if check_only == false. + * the string. Maximum similarity is only calculated only if the flag + * WORD_SIMILARITY_CHECK_ONLY isn't set. * * trg2indexes: array which stores indexes of the array "found". * found: array which stores true of false values. * ulen1: count of unique trigrams of array "trg1". * len2: length of array "trg2" and array "trg2indexes". * len: length of the array "found". - * lags: set of boolean flags parameterizing similarity calculation. + * flags: set of boolean flags parameterizing similarity calculation. * bounds: whether each trigram is left/right bound of word. * * Returns word similarity. |