Skip to content

Commit

Permalink
lets stay pipey
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
fenollp committed Apr 19, 2019
1 parent 7091cc7 commit f317017
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/scribe.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ defmodule Scribe do
+----------+---------+
:ok
"""
@spec print(IO.device(), data, format_opts) :: :ok
def print(dev \\ :stdio, _results, opts \\ [])
@spec print(data, IO.device(), format_opts) :: :ok
def print(_results, dev \\ :stdio, opts \\ [])

def print(_dev, [], _opts), do: :ok
def print([], _dev, _opts), do: :ok

def print(dev, results, opts) do
def print(results, dev, opts) do
results
|> format(opts)
|> IO.puts(dev)
Expand Down

0 comments on commit f317017

Please sign in to comment.