Fix some typos

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Elyes Haouas
2023-02-25 09:55:04 +01:00
parent 0d99d38089
commit 1af25094b7
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
namespace waybar::util {
// replaces ``<>&"'`` with their encoded counterparts
std::string sanitize_string(std::string str) {
// note: it's important that '&' is replaced first; therefor we *can't* use std::map
// note: it's important that '&' is replaced first; therefore we *can't* use std::map
const std::pair<char, std::string> replacement_table[] = {
{'&', "&amp;"}, {'<', "&lt;"}, {'>', "&gt;"}, {'"', "&quot;"}, {'\'', "&apos;"}};
size_t startpoint;