diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-03-15 11:29:23 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-03-15 11:29:35 +0900 |
commit | 6bdf1a1400d3fb8c87e020be943942dcab7e75e2 (patch) | |
tree | 36a89f562b86d31636c092256af2c7cb3ad2d106 /src/backend/utils/adt/tsrank.c | |
parent | ff8b37ba801073b4506f670317141785bab9f4d8 (diff) | |
download | postgresql-6bdf1a1400d3fb8c87e020be943942dcab7e75e2.tar.gz postgresql-6bdf1a1400d3fb8c87e020be943942dcab7e75e2.zip |
Fix collection of typos in the code and the documentation
Some words were duplicated while other places were grammatically
incorrect, including one variable name in the code.
Author: Otto Kekalainen, Justin Pryzby
Discussion: https://postgr.es/m/7DDBEFC5-09B6-4325-B942-B563D1A24BDC@amazon.com
Diffstat (limited to 'src/backend/utils/adt/tsrank.c')
-rw-r--r-- | src/backend/utils/adt/tsrank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsrank.c b/src/backend/utils/adt/tsrank.c index cd8aff0ad24..3858fc59281 100644 --- a/src/backend/utils/adt/tsrank.c +++ b/src/backend/utils/adt/tsrank.c @@ -337,7 +337,7 @@ calc_rank_or(const float *w, TSVector t, TSQuery q) } /* limit (sum(1/i^2),i=1,inf) = pi^2/6 - resj = sum(wi/i^2),i=1,noccurence, + resj = sum(wi/i^2),i=1,noccurrence, wi - should be sorted desc, don't sort for now, just choose maximum weight. This should be corrected Oleg Bartunov |