@@ -278,14 +278,14 @@ defmodule Engine.Search.Indexer.Extractors.Module do
278278
279279 defp module ( _ , _ ) , do: :error
280280
281- @ protocol_module_attribue_names [ :protocol , :for ]
281+ @ protocol_module_attribute_names [ :protocol , :for ]
282282
283283 @ starts_with_capital ~r/ [A-Z]+/
284284 defp module_part? ( part ) when is_atom ( part ) do
285285 Regex . match? ( @ starts_with_capital , Atom . to_string ( part ) )
286286 end
287287
288- defp module_part? ( { :@ , _ , [ { type , _ , _ } | _ ] } ) when type in @ protocol_module_attribue_names ,
288+ defp module_part? ( { :@ , _ , [ { type , _ , _ } | _ ] } ) when type in @ protocol_module_attribute_names ,
289289 do: true
290290
291291 defp module_part? ( { :__MODULE__ , _ , context } ) when is_atom ( context ) , do: true
@@ -306,7 +306,7 @@ defmodule Engine.Search.Indexer.Extractors.Module do
306306
307307 # handles @protocol and @for in defimpl blocks
308308 defp to_range ( % Reducer { } = reducer , [ { :@ , _ , [ { type , _ , _ } | _ ] } = attribute | segments ] , _ )
309- when type in @ protocol_module_attribue_names do
309+ when type in @ protocol_module_attribute_names do
310310 range = Sourceror . get_range ( attribute )
311311
312312 document = reducer . analysis . document
0 commit comments