1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

Everywhere: Fix a bunch of typos

This commit is contained in:
Linus Groh 2021-05-17 17:48:55 +01:00
parent bebbeda726
commit 0aab774343
14 changed files with 21 additions and 21 deletions

View file

@ -127,7 +127,7 @@ Optional<Core::DateTime> parse_generalized_time(const StringView& time)
auto month = lexer.consume(2).to_uint();
auto day = lexer.consume(2).to_uint();
auto hour = lexer.consume(2).to_uint();
Optional<unsigned> minute, seconds, miliseconds, offset_hours, offset_minutes;
Optional<unsigned> minute, seconds, milliseconds, offset_hours, offset_minutes;
[[maybe_unused]] bool negative_offset = false;
if (!lexer.is_eof()) {
if (lexer.consume_specific('Z'))
@ -152,8 +152,8 @@ Optional<Core::DateTime> parse_generalized_time(const StringView& time)
}
if (lexer.consume_specific('.')) {
miliseconds = lexer.consume(3).to_uint();
if (!miliseconds.has_value()) {
milliseconds = lexer.consume(3).to_uint();
if (!milliseconds.has_value()) {
return {};
}
if (lexer.consume_specific('Z'))
@ -182,7 +182,7 @@ done_parsing:;
if (offset_hours.has_value() || offset_minutes.has_value())
dbgln("FIXME: Implement GeneralizedTime with offset!");
// Unceremonially drop the miliseconds on the floor.
// Unceremonially drop the milliseconds on the floor.
return Core::DateTime::create(year.value(), month.value(), day.value(), hour.value(), minute.value_or(0), seconds.value_or(0));
}