]> granicus.if.org Git - postgresql/commitdiff
Even more duplicate word removal, in the spirit of the season
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 2 May 2012 17:14:39 +0000 (20:14 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 2 May 2012 17:56:03 +0000 (20:56 +0300)
contrib/fuzzystrmatch/levenshtein.c
contrib/pgcrypto/crypt-md5.c
src/backend/tsearch/wparser_def.c

index 90d4f2169d37360ee75b9bfcf8e00a741672437b..32827cb5f623792d81252a7daf1530e112bb148f 100644 (file)
@@ -349,8 +349,8 @@ levenshtein_internal(text *s, text *t,
                         * remaining portions of the strings are of equal length.  There
                         * are (n - 1) characters in the target string, of which j have
                         * been transformed.  There are (m - 1) characters in the source
-                        * string, so we want to find the value for zp where where (n - 1)
-                        * - j = (m - 1) - zp.
+                        * string, so we want to find the value for zp where (n - 1) - j =
+                        * (m - 1) - zp.
                         */
                        int                     zp = j - (n - m);
 
index 7aa57bc319fbf73c03314b8e1e35894b6ca1ef0a..6c7a2b329e487cd9d5c164f6ca5302ad8c558524 100644 (file)
@@ -34,7 +34,7 @@ char *
 px_crypt_md5(const char *pw, const char *salt, char *passwd, unsigned dstlen)
 {
        static char *magic = "$1$"; /* This string is magic for this algorithm.
-                                                                * Having it this way, we can get get better
+                                                                * Having it this way, we can get better
                                                                 * later on */
        static char *p;
        static const char *sp,
index 4b76997854b69de1f8f170d233d01c74b6c9495b..f2ec784ac231e0a9b309b600cb4428bd6351f392 100644 (file)
@@ -2508,7 +2508,7 @@ prsd_headline(PG_FUNCTION_ARGS)
        List       *prsoptions = (List *) PG_GETARG_POINTER(1);
        TSQuery         query = PG_GETARG_TSQUERY(2);
 
-       /* from opt + start and and tag */
+       /* from opt + start and end tag */
        int                     min_words = 15;
        int                     max_words = 35;
        int                     shortword = 3;