Skip to content

Commit

Permalink
chore: fix some typos (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzedavid authored May 2, 2024
1 parent 241eeb2 commit 330023a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/floki/entities.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule Floki.Entities do
* less-than sign - < - is replaced by "&lt;".
* greater-than sign - > - is replaced by "&gt;".
All other simbols are going to remain the same.
All other symbols are going to remain the same.
Optimized IO data implementation from Plug.HTML
"""
Expand Down
2 changes: 1 addition & 1 deletion src/floki_mochi_html.erl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ norm({Tag, Attrs}, Opts) ->
case lists:keyfind(attributes_as_maps, 1, Opts) of
{attributes_as_maps, true} ->
% The HTML specs says we should ignore duplicated attributes and keep the first
% occurence of a given key.
% occurrence of a given key.
% Since `maps:from_list/1` does the opposite, we need to reverse the attributes.
% See https://github.com/philss/floki/pull/467#discussion_r1225548333
{norm(Tag, Opts), maps:from_list(lists:reverse(Attrs0)), []};
Expand Down

0 comments on commit 330023a

Please sign in to comment.