Skip to content

Commit 72e557a

Browse files
committed
More
1 parent 6ab3b55 commit 72e557a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/inspect/algebra.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,10 @@ defmodule Inspect.Algebra do
852852
document within it. Overall, this has an effect similar
853853
to swapping the order groups break. For example, if you have
854854
a `parent_group(child_group)` and they do not fit, the parent
855-
will convert breaks into newlines, hoping the child group fits.
856-
However, if the child group is optimistic, then the parent can
857-
assume that it will fit, leaving the overall fitting decision
858-
to the child
855+
converts breaks into newlines first, allowing the child to compute
856+
if it fits. However, if the child group is optimistic and it
857+
has breaks, then the parent assumes it fits, leaving the overall
858+
fitting decision to the child
859859
860860
* `:pessimistic` - the group fits if it fits within the given
861861
width. However it disables any optimistic group within it

0 commit comments

Comments
 (0)