Skip to content

Commit ee9ddb6

Browse files
VLanvinmeta-codesync[bot]
authored andcommitted
Fix spec for error_info/2
Summary: The open sourced `wa_assert_parse_trans` uses `error_info` by passing it a string literal, not a binary. Fix spec accordingly. Reviewed By: robertoaloi Differential Revision: D85242464 fbshipit-source-id: 4ae29e973a9f6189dd104c7ea07bbca503796ef2
1 parent 90d2fab commit ee9ddb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wa_assert.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ assert_error_info(Expression, #{type := generic} = Meta) ->
4444
assert_error_info(_Expression, _Meta) ->
4545
{error, no_error_info}.
4646

47-
-spec error_info(binary(), pins()) -> {ok, error_info(match_cause())}.
47+
-spec error_info(string(), pins()) -> {ok, error_info(match_cause())}.
4848
error_info(Pattern, Pins) ->
4949
Cause = #{pins => Pins, pattern => Pattern},
5050
{ok, #{module => ?MODULE, function => format_error, cause => Cause}}.

0 commit comments

Comments
 (0)