Skip to content

Commit 55aec5a

Browse files
committed
Fix output for usage instructions in CLI by removing stderr redirection in Elixir starter files.
1 parent 945f796 commit 55aec5a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiled_starters/elixir/lib/main.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule CLI do
1515
# IO.puts("database page size: #{page_size}")
1616
end
1717
_ ->
18-
IO.puts(:stderr, "Usage: your_program <database_file> <command>")
18+
IO.puts("Usage: your_program <database_file> <command>")
1919
end
2020
end
2121
end

solutions/elixir/01-dr6/code/lib/main.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule CLI do
1111
IO.puts("database page size: #{page_size}")
1212
end
1313
_ ->
14-
IO.puts(:stderr, "Usage: your_program <database_file> <command>")
14+
IO.puts("Usage: your_program <database_file> <command>")
1515
end
1616
end
1717
end

solutions/elixir/01-dr6/diff/lib/main.ex.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
+ IO.puts("database page size: #{page_size}")
2020
end
2121
_ ->
22-
IO.puts(:stderr, "Usage: your_program <database_file> <command>")
22+
IO.puts("Usage: your_program <database_file> <command>")
2323
end
2424
end
2525
end

starter_templates/elixir/code/lib/main.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule CLI do
1515
# IO.puts("database page size: #{page_size}")
1616
end
1717
_ ->
18-
IO.puts(:stderr, "Usage: your_program <database_file> <command>")
18+
IO.puts("Usage: your_program <database_file> <command>")
1919
end
2020
end
2121
end

0 commit comments

Comments
 (0)