aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2018-04-23 16:55:13 +0300
committerTeodor Sigaev <teodor@sigaev.ru>2018-04-23 16:55:13 +0300
commit9975c128a1d1bd7e7366adf133b21540a2bc2450 (patch)
treef148c572ec2c85b638da81ba906cc7d342747b30
parent6db4b49986be3fe59a1f6ba6fabf9852864efc3e (diff)
downloadpostgresql-9975c128a1d1bd7e7366adf133b21540a2bc2450.tar.gz
postgresql-9975c128a1d1bd7e7366adf133b21540a2bc2450.zip
Update trigram example in docs to correct state
Author: Liudmila Mantrova
-rw-r--r--doc/src/sgml/pgtrgm.sgml6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/pgtrgm.sgml b/doc/src/sgml/pgtrgm.sgml
index 8f395296d8f..be43cdf2996 100644
--- a/doc/src/sgml/pgtrgm.sgml
+++ b/doc/src/sgml/pgtrgm.sgml
@@ -152,9 +152,9 @@
</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>.
@@ -172,7 +172,7 @@
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>