Hi everyone,

I was writting some docs, and I realize I don't know how to do this.

when using docstests, we can do

    iex> ex = fn -> IO.puts(:elixir); :rocks end
    ...> ex.()
    #=> elixir
    :rocks

but what is the proper way to do this when it is not a doctest?
How do i differentiate what written to std_io, from what it's being
returned.
 
    ex = fn -> IO.puts(:elixir); :rocks end
    ex.()

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/20160516225820.29ab2eb8.eksperimental%40autistici.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to