When typing multiline commands into IEx it is easy to get lost in opening and closing symbols. For those cases you can issue #iex:break to interrupt the declaration of that command. For example:

iex> IO.puts "hello world
...>
...> #iex:break
** (TokenMissingError) iex:1: incomplete expression
iex>

Additional reading: - Elixir interactive shell