summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEksperimental <eksperimental@users.noreply.github.com>2018-09-14 17:08:21 +0700
committerJosé Valim <jose.valim@gmail.com>2018-09-14 12:08:21 +0200
commitd3daa11a11e301fc1ed5f3ebfa3bb95d884cc05c (patch)
treeedafcfd02b6348965ee2a89af73dfb15aecc64bd
parentdae654b30b1a32a27dadb2e6f28ec48959223016 (diff)
downloadelixir-d3daa11a11e301fc1ed5f3ebfa3bb95d884cc05c.tar.gz
Link to IEx.pry correctly (#8191)
Fix arity and use parenthesis
-rw-r--r--lib/ex_unit/lib/ex_unit.ex2
-rw-r--r--lib/iex/lib/iex.ex10
-rw-r--r--lib/iex/lib/iex/helpers.ex2
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/ex_unit/lib/ex_unit.ex b/lib/ex_unit/lib/ex_unit.ex
index abeb9c38c..bd4911c7d 100644
--- a/lib/ex_unit/lib/ex_unit.ex
+++ b/lib/ex_unit/lib/ex_unit.ex
@@ -147,7 +147,7 @@ defmodule ExUnit do
2. per case by setting "@moduletag timeout: x"
3. globally via "ExUnit.start(timeout: x)" configuration
4. or set it to infinity per run by calling "mix test --trace"
- (useful when using IEx.pry)
+ (useful when using IEx.pry/0)
Timeouts are given as integers in milliseconds.
"""
diff --git a/lib/iex/lib/iex.ex b/lib/iex/lib/iex.ex
index 46a5469df..65681543c 100644
--- a/lib/iex/lib/iex.ex
+++ b/lib/iex/lib/iex.ex
@@ -107,7 +107,7 @@ defmodule IEx do
code directly and recompile it:
def my_fun(arg1, arg2) do
- require IEx; IEx.pry
+ require IEx; IEx.pry()
... implementation ...
end
@@ -473,7 +473,7 @@ defmodule IEx do
## Examples
Let's suppose you want to investigate what is happening
- with some particular function. By invoking `IEx.pry/1` from
+ with some particular function. By invoking `IEx.pry/0` from
the function, IEx will allow you to access its binding
(variables), verify its lexical information and access
the process information. Let's see an example:
@@ -483,7 +483,7 @@ defmodule IEx do
defmodule Adder do
def add(a, b) do
c = a + b
- require IEx; IEx.pry
+ require IEx; IEx.pry()
end
end
@@ -497,7 +497,7 @@ defmodule IEx do
2
3
- Keep in mind that `IEx.pry/1` runs in the caller process,
+ Keep in mind that `IEx.pry/0` runs in the caller process,
blocking the caller during the evaluation cycle. The caller
process can be freed by calling `respawn/0`, which starts a
new IEx evaluation cycle, letting this one go:
@@ -519,7 +519,7 @@ defmodule IEx do
quote do
def add(a, b) do
c = a + b
- require IEx; IEx.pry
+ require IEx; IEx.pry()
end
end
end
diff --git a/lib/iex/lib/iex/helpers.ex b/lib/iex/lib/iex/helpers.ex
index ebb40df50..19c19fe0e 100644
--- a/lib/iex/lib/iex/helpers.ex
+++ b/lib/iex/lib/iex/helpers.ex
@@ -990,7 +990,7 @@ defmodule IEx.Helpers do
77:
78: def recompile do
- 79: require IEx; IEx.pry
+ 79: require IEx; IEx.pry()
80: if mix_started?() do
81: config = Mix.Project.config