Skip to content

Commit 9975c12

Browse files
committed
Update trigram example in docs to correct state
Author: Liudmila Mantrova
1 parent 6db4b49 commit 9975c12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/pgtrgm.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@
152152
</programlisting>
153153

154154
In the first string, the set of trigrams is
155-
<literal>{" w"," wo","ord","wor","rd "}</literal>.
155+
<literal>{" w"," wo","wor","ord","rd "}</literal>.
156156
In the second string, the ordered set of trigrams is
157-
<literal>{" t"," tw",two,"wo "," w"," wo","wor","ord","rds", ds "}</literal>.
157+
<literal>{" t"," tw","two","wo "," w"," wo","wor","ord","rds","ds "}</literal>.
158158
The most similar extent of an ordered set of trigrams in the second string
159159
is <literal>{" w"," wo","wor","ord"}</literal>, and the similarity is
160160
<literal>0.8</literal>.
@@ -172,7 +172,7 @@
172172
At the same time, <function>strict_word_similarity(text, text)</function>
173173
has to select an extent that matches word boundaries. In the example above,
174174
<function>strict_word_similarity(text, text)</function> would select the
175-
extent <literal>{" w"," wo","wor","ord","rds", ds "}</literal>, which
175+
extent <literal>{" w"," wo","wor","ord","rds","ds "}</literal>, which
176176
corresponds to the whole word <literal>'words'</literal>.
177177

178178
<programlisting>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy