File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ defmodule Module.Types do
421
421
422
422
defp format_message_hint ( { :sized_and_unsize_tuples , { size , var } } ) do
423
423
"""
424
- HINT: use "is_tuple(#{ Macro . to_string ( var ) } ) and \
424
+ HINT: use pattern matching or "is_tuple(#{ Macro . to_string ( var ) } ) and \
425
425
tuple_size(#{ Macro . to_string ( var ) } ) == #{ size } " to guard a sized tuple.
426
426
"""
427
427
end
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ defmodule Module.Types.TypesTest do
344
344
# types_test.ex:1
345
345
{_} = foo
346
346
347
- HINT: use "is_tuple(foo) and tuple_size(foo) == 1" to guard a sized tuple.
347
+ HINT: use pattern matching or "is_tuple(foo) and tuple_size(foo) == 1" to guard a sized tuple.
348
348
"""
349
349
end
350
350
You can’t perform that action at this time.
0 commit comments