chore: fix some typos (#40506)

This commit is contained in:
David Sanders 2023-11-12 19:51:56 -08:00 committed by GitHub
parent 262723e394
commit cf5f0419f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 19 additions and 19 deletions

View file

@ -145,7 +145,7 @@ file_dialog::Filters FormatFilterForExtensions(
if (first_separator_index != std::string::npos)
first_extension = first_extension.substr(0, first_separator_index);
// Find the extension name without the preceeding '.' character.
// Find the extension name without the preceding '.' character.
std::string ext_name = first_extension;
size_t ext_index = ext_name.find_first_not_of('.');
if (ext_index != std::string::npos)
@ -169,7 +169,7 @@ file_dialog::Filters FormatFilterForExtensions(
base::ReplaceChars(desc, "*", base::StringPiece(), &desc);
}
// Remove the preceeding '.' character from the extension.
// Remove the preceding '.' character from the extension.
size_t ext_index = ext.find_first_not_of('.');
if (ext_index != std::string::npos)
ext = ext.substr(ext_index);