From b2b13de3184068b6015cb5065c2441a72d3a36c0 Mon Sep 17 00:00:00 2001 From: tianzedavid Date: Wed, 1 May 2024 12:03:14 +0800 Subject: [PATCH] chore: fix some typos --- lib/floki/entities.ex | 2 +- src/floki_mochi_html.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/floki/entities.ex b/lib/floki/entities.ex index 688f9cd2..daecc8ee 100644 --- a/lib/floki/entities.ex +++ b/lib/floki/entities.ex @@ -61,7 +61,7 @@ defmodule Floki.Entities do * less-than sign - < - is replaced by "<". * greater-than sign - > - is replaced by ">". - 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 """ diff --git a/src/floki_mochi_html.erl b/src/floki_mochi_html.erl index 54dbe41e..385a9058 100644 --- a/src/floki_mochi_html.erl +++ b/src/floki_mochi_html.erl @@ -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)), []};