Skip to content

Commit 24c6974

Browse files
author
José Valim
committed
Properly pad formatted typespec
1 parent 1d0423c commit 24c6974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iex/lib/iex/introspection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ defmodule IEx.Introspection do
697697

698698
defp format_typespec(definition, kind, nesting) do
699699
"@#{kind} #{Macro.to_string(definition)}"
700-
|> Code.format_string!(line_length: IEx.width() - nesting)
700+
|> Code.format_string!(line_length: IEx.width() - 2 * nesting)
701701
|> IO.iodata_to_binary()
702702
|> color_prefix_with_line()
703703
|> indent(nesting)

0 commit comments

Comments
 (0)