Skip to content

Commit 9f867f2

Browse files
author
Thomaz Leite
committed
Fix IO.ANSI doctests
1 parent 5e20208 commit 9f867f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/io/ansi.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ defmodule IO.ANSI do
151151
## Examples
152152
153153
iex> IO.ANSI.format(["Hello, ", :red, :bright, "world!"], true)
154-
["Hello, ", "\e[31m", "\e[1m", "world!", "\e[0m"]
154+
[[[[[[], "Hello, "], "\e[31m"], "\e[1m"], "world!"] | "\e[0m"]
155155
"""
156156
def format(chardata, emit \\ terminal?) do
157157
do_format(chardata, [], [], emit, :maybe)
@@ -171,7 +171,7 @@ defmodule IO.ANSI do
171171
## Examples
172172
173173
iex> IO.ANSI.format_fragment([:bright, 'Word'], true)
174-
["\e[1m", 87, 111, 114, 100]
174+
[[[[[[], "\e[1m"], 87], 111], 114], 100]
175175
"""
176176
def format_fragment(chardata, emit \\ terminal?) do
177177
do_format(chardata, [], [], emit, false)

0 commit comments

Comments
 (0)