Skip to content

Commit afb4667

Browse files
whatyouhideJosé Valim
authored andcommitted
Add an additional example to the docs for String.jaro_distance/1
Signed-off-by: José Valim <[email protected]>
1 parent eb50a09 commit afb4667

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/lib/string.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,6 +2240,8 @@ defmodule String do
22402240
0.8222222222222223
22412241
iex> String.jaro_distance("even", "odd")
22422242
0.0
2243+
iex> String.jaro_distance("same", "same")
2244+
1.0
22432245
22442246
"""
22452247
@spec jaro_distance(t, t) :: float

0 commit comments

Comments
 (0)