Skip to content

Commit cacb175

Browse files
committed
Add @doc false to Inspect.Algebra.no_limit/1 (#13893)
1 parent bfce3ed commit cacb175

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/elixir/lib/inspect/algebra.ex

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,21 @@ defmodule Inspect.Algebra do
588588
doc_cons(doc1, doc2)
589589
end
590590

591+
@doc ~S"""
592+
Disable any rendering limit while rendering the given document.
593+
594+
## Examples
595+
596+
iex> doc = Inspect.Algebra.glue("hello", "world") |> Inspect.Algebra.group()
597+
iex> Inspect.Algebra.format(doc, 10)
598+
["hello", "\n", "world"]
599+
iex> doc = Inspect.Algebra.no_limit(doc)
600+
iex> Inspect.Algebra.format(doc, 10)
601+
["hello", " ", "world"]
602+
603+
"""
604+
@doc since: "1.14.0"
605+
@spec no_limit(t) :: t
591606
def no_limit(doc) do
592607
doc_limit(doc, :infinity)
593608
end

0 commit comments

Comments
 (0)