Skip to content

Commit fade545

Browse files
author
José Valim
committed
R16A fixes
1 parent 9e46866 commit fade545

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/elixir/lib/binary/inspect.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ defimpl Binary.Inspect, for: List do
261261

262262
def inspect(thing, opts) do
263263
cond do
264-
:io_lib.printable_unicode_list(thing) ->
264+
:io_lib.printable_list(thing) ->
265265
escape(:unicode.characters_to_binary(thing), ?')
266266
Keyword.keyword?(thing) ->
267267
"[" <> join_keywords(thing, opts) <> "]"

lib/elixir/test/elixir/typespec_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,14 @@ defmodule Typespec.TypeTest do
405405
@typep b :: any
406406
@spec t(b) :: b
407407
def t(b), do: b
408-
@opaque c :: any
408+
@opaque c :: atom
409409
end
410410

411411
:code.delete(T)
412412
:code.purge(T)
413413

414414
assert [
415-
{:opaque, {:c,{:type,_,:any,[]},[]}},
415+
{:opaque, {:c,{:type,_,:atom,[]},[]}},
416416
{:type, {:a,{:type,_,:any,[]},[]}},
417417
{:typep, {:b,{:type,_,:any,[]},[]}},
418418
] = Kernel.Typespec.beam_types(binary)

0 commit comments

Comments
 (0)