Skip to content

Commit

Permalink
Add example with hamming_distance with different length
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Dec 14, 2021
1 parent be45169 commit 60d1c91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/function_help/json/hamming_distance
Expand Up @@ -6,8 +6,10 @@
"arguments": [ {"arg":"string1","description":"a string"},
{"arg":"string2","description":"a string"}
],
"examples": [ { "expression":"hamming_distance('abc','xec')", "returns":"2"},
{ "expression":"hamming_distance('abc','ABc')", "returns":"2"},
{ "expression":"hamming_distance(upper('abc'),upper('ABC'))", "returns":"0"}
"examples": [
{ "expression":"hamming_distance('abc','xec')", "returns":"2"},
{ "expression":"hamming_distance('abc','ABc')", "returns":"2"},
{ "expression":"hamming_distance(upper('abc'),upper('ABC'))", "returns":"0"},
{ "expression":"hamming_distance('abc','abcd')", "returns":"NULL"}
]
}

0 comments on commit 60d1c91

Please sign in to comment.