diff --git a/lib/elixir/lib/system.ex b/lib/elixir/lib/system.ex index 80ac75ac157..12eb33bd589 100644 --- a/lib/elixir/lib/system.ex +++ b/lib/elixir/lib/system.ex @@ -564,10 +564,10 @@ defmodule System do iex> System.cmd("echo", ["hello"]) {"hello\n", 0} - iex> System.cmd("echo", ["hello"]), env: [{"MIX_ENV", "test"}] + iex> System.cmd("echo", ["hello"], env: [{"MIX_ENV", "test"}]) {"hello\n", 0} - iex> System.cmd("echo", ["hello"]), into: IO.stream(:stdio, :line) + iex> System.cmd("echo", ["hello"], into: IO.stream(:stdio, :line)) hello {%IO.Stream{}, 0}