Skip to content

Commit 50aba8f

Browse files
ciaranJosé Valim
authored andcommitted
Improvements to IEx.break! docs
1 parent 06b46e7 commit 50aba8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/iex/lib/iex.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ defmodule IEx do
594594
595595
IEx.break!(URI, :decode_query, 2)
596596
597-
The following call will setup a breakpoint that stops once.
597+
This call will setup a breakpoint that stops once.
598598
To set a breakpoint that will stop 10 times:
599599
600-
IEx.break!(URI, :decode_query, 10)
600+
IEx.break!(URI, :decode_query, 2, 10)
601601
602602
`IEx.break!/2` is a convenience macro that allows breakpoints
603603
to be given in the `Mod.fun/arity` format:
@@ -622,7 +622,7 @@ defmodule IEx do
622622
iex -S mix test path/to/file:line --trace
623623
624624
"""
625-
def break!(module, function, arity, stops \\ 10) do
625+
def break!(module, function, arity, stops \\ 1) do
626626
case IEx.Pry.break(module, function, arity, stops) do
627627
{:ok, id} ->
628628
id

0 commit comments

Comments
 (0)