Skip to content

Commit

Permalink
Add @doc false to Inspect.Algebra.no_limit/1 (#13893)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiwara authored Oct 10, 2024
1 parent 8786bcc commit 8321e90
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/elixir/lib/inspect/algebra.ex
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,21 @@ defmodule Inspect.Algebra do
doc_cons(doc1, doc2)
end

@doc ~S"""
Disable any rendering limit while rendering the given document.
## Examples
iex> doc = Inspect.Algebra.glue("hello", "world") |> Inspect.Algebra.group()
iex> Inspect.Algebra.format(doc, 10)
["hello", "\n", "world"]
iex> doc = Inspect.Algebra.no_limit(doc)
iex> Inspect.Algebra.format(doc, 10)
["hello", " ", "world"]
"""
@doc since: "1.14.0"
@spec no_limit(t) :: t
def no_limit(doc) do
doc_limit(doc, :infinity)
end
Expand Down

0 comments on commit 8321e90

Please sign in to comment.