]> granicus.if.org Git - postgresql/commitdiff
Update trigram example in docs to correct state
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 23 Apr 2018 13:55:13 +0000 (16:55 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 23 Apr 2018 13:55:13 +0000 (16:55 +0300)
Author: Liudmila Mantrova

doc/src/sgml/pgtrgm.sgml

index 8f395296d8f58f7a6965634cc63a9a9cc6b45c02..be43cdf2996c3927c426609372c33b002d5e1a02 100644 (file)
 </programlisting>
 
    In the first string, the set of trigrams is
-   <literal>{"  w"," wo","ord","wor","rd "}</literal>.
+   <literal>{"  w"," wo","wor","ord","rd "}</literal>.
    In the second string, the ordered set of trigrams is
-   <literal>{"  t"," tw",two,"wo ","  w"," wo","wor","ord","rds", ds "}</literal>.
+   <literal>{"  t"," tw","two","wo ","  w"," wo","wor","ord","rds","ds "}</literal>.
    The most similar extent of an ordered set of trigrams in the second string
    is <literal>{"  w"," wo","wor","ord"}</literal>, and the similarity is
    <literal>0.8</literal>.
    At the same time, <function>strict_word_similarity(text, text)</function>
    has to select an extent that matches word boundaries.  In the example above,
    <function>strict_word_similarity(text, text)</function> would select the
-   extent <literal>{"  w"," wo","wor","ord","rds", ds "}</literal>, which
+   extent <literal>{"  w"," wo","wor","ord","rds","ds "}</literal>, which
    corresponds to the whole word <literal>'words'</literal>.
 
 <programlisting>