Skip to content

Commit d4f3445

Browse files
authored
Inline function in Base.valid16? implementation (#14433)
1 parent 769737e commit d4f3445

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/lib/base.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ defmodule Base do
384384

385385
defp unquote(validate_name)(<<_char, _rest::binary>>), do: false
386386

387+
@compile {:inline, [{valid_char_name, 1}]}
387388
defp unquote(valid_char_name)(char)
388389
when elem({unquote_splicing(decoded)}, char - unquote(min)) != nil,
389390
do: true

0 commit comments

Comments
 (0)