Skip to content

Commit 8bbf384

Browse files
committed
Update comment
1 parent dc388a7 commit 8bbf384

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/lazy_html/tree.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ defmodule LazyHTML.Tree do
133133
#
134134
# [1]: https://github.com/phoenixframework/phoenix_html/blob/v4.2.1/lib/phoenix_html/engine.ex#L29-L35
135135

136-
# Note: it is important for this function to be private to maximise
137-
# optimisation, see https://github.com/dashbitco/lazy_html/pull/18#issuecomment-3162730539.
136+
# Note: it is important for this function to be private, so that the
137+
# Erlang compiler can infer that it is safe to use mutating appends
138+
# on the underlying binary and maximise optimisations.
139+
#
140+
# See https://github.com/dashbitco/lazy_html/pull/18#issuecomment-3162730539.
138141
defp append_escaped(text, html) do
139142
append_escaped(text, text, 0, 0, html)
140143
end

0 commit comments

Comments
 (0)