Skip to content

Commit a8d9ad5

Browse files
committed
Add an example of using the limit inspect opt
1 parent ffb1863 commit a8d9ad5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,9 @@ defmodule Kernel do
18971897
iex> inspect(:foo)
18981898
":foo"
18991899
1900+
iex> inspect [1,2,3,4,5], limit: 3
1901+
"[1,2,3,...]"
1902+
19001903
inspect(ArgumentError[])
19011904
#=> "ArgumentError[message: \"argument error\"]"
19021905

0 commit comments

Comments
 (0)