Skip to content

Commit

Permalink
Fix Exception.format_stacktrace/1 spec (#12991)
Browse files Browse the repository at this point in the history
  • Loading branch information
michallepicki authored Oct 5, 2023
1 parent d1a218b commit 0886847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/exception.ex
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ defmodule Exception do
A stacktrace must be given as an argument. If not, the stacktrace
is retrieved from `Process.info/2`.
"""
@spec format_stacktrace(stacktrace) :: String.t()
@spec format_stacktrace(stacktrace | nil) :: String.t()
def format_stacktrace(trace \\ nil) do
trace =
if trace do
Expand Down

0 comments on commit 0886847

Please sign in to comment.