Skip to content

Commit 7f73cb3

Browse files
committed
Add missing specification for IO.ANSI.terminal?/1
1 parent 0123edd commit 7f73cb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/lib/io/ansi.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ defmodule IO.ANSI do
3636
be printed as intended
3737
"""
3838
@spec terminal? :: boolean
39+
@spec terminal?(:io.device) :: boolean
3940
def terminal?(device // :erlang.group_leader) do
4041
if :erlang.system_info(:otp_release) < 'R16' and
4142
Process.whereis(:user) != device do

0 commit comments

Comments
 (0)