Commit d6df2ca
committed
Fix ms_transform:format_error/1 spec to match actual clause patterns
The original spec declared `Error :: {error, module(), term()}` (a 3-tuple),
but the function clauses match integer error codes and various code-tagged
tuples. We could also go with just `Error :: Code | tuple()` for simplicity.
This original spec has looked like that at least
since stdlib-6.2.1 / Erlang 27.3.1 parent 74cd1dc commit d6df2ca
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments