Skip to content

Commit 7e66a4c

Browse files
committed
Add pattern to Code.Fragment.surround_context/3
1 parent b085ad2 commit 7e66a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/code/fragment.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ defmodule Code.Fragment do
525525
|> position_surround_context(line, column, opts)
526526
end
527527

528-
def surround_context(other, position, opts) do
528+
def surround_context(other, {_, _} = position, opts) do
529529
surround_context(to_charlist(other), position, opts)
530530
end
531531

0 commit comments

Comments
 (0)