From 507382e2ba105634591fe11e7e3605e63ac4a88e Mon Sep 17 00:00:00 2001 From: preciz Date: Fri, 25 Sep 2026 09:37:36 +0200 Subject: [PATCH] Pass the formatter bitstring suffix directly Use the binary suffix overload to avoid the list-search callback and its closure. Assisted-by: Codex:GPT-6 Assisted-by: Antigravity:Gemini 3.8 Flash --- lib/elixir/lib/code/formatter.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/code/formatter.ex b/lib/elixir/lib/code/formatter.ex index 3d9c52588c..9cbd324c8b 100644 --- a/lib/elixir/lib/code/formatter.ex +++ b/lib/elixir/lib/code/formatter.ex @@ -1633,7 +1633,7 @@ defmodule Code.Formatter do string = format_to_string(doc) if (i == 0 and String.starts_with?(string, ["~", "<<"])) or - (i == last and String.ends_with?(string, [">>"])) do + (i == last and String.ends_with?(string, ">>")) do wrap_in_parens(doc) else doc