Skip to content

Commit 6dc0738

Browse files
Update out of date comments in pg_trgm
Commit be8a7a6 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]
1 parent ae4fc52 commit 6dc0738

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: contrib/pg_trgm/trgm_op.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,15 @@ comp_ptrgm(const void *v1, const void *v2)
442442

443443
/*
444444
* Iterative search function which calculates maximum similarity with word in
445-
* the string. But maximum similarity is calculated only if check_only == false.
445+
* the string. Maximum similarity is only calculated only if the flag
446+
* WORD_SIMILARITY_CHECK_ONLY isn't set.
446447
*
447448
* trg2indexes: array which stores indexes of the array "found".
448449
* found: array which stores true of false values.
449450
* ulen1: count of unique trigrams of array "trg1".
450451
* len2: length of array "trg2" and array "trg2indexes".
451452
* len: length of the array "found".
452-
* lags: set of boolean flags parameterizing similarity calculation.
453+
* flags: set of boolean flags parameterizing similarity calculation.
453454
* bounds: whether each trigram is left/right bound of word.
454455
*
455456
* Returns word similarity.

0 commit comments

Comments
 (0)