Libraries: Fix typos

This commit is contained in:
Nico Weber 2021-09-30 20:03:41 -04:00 committed by Linus Groh
parent 9ec9886b04
commit de72332920
Notes: sideshowbarker 2024-07-18 03:16:24 +09:00
9 changed files with 10 additions and 10 deletions

View file

@ -34,7 +34,7 @@ bool Clipper::point_within_clip_plane(const FloatVector4& vertex, ClipPlane plan
GLVertex Clipper::clip_intersection_point(const GLVertex& p1, const GLVertex& p2, ClipPlane plane_index)
{
// See https://www.microsoft.com/en-us/research/wp-content/uploads/1978/01/p245-blinn.pdf
// "Clipping Using Homogenous Coordinates" Blinn/Newell, 1978
// "Clipping Using Homogeneous Coordinates" Blinn/Newell, 1978
float w1 = p1.position.w();
float w2 = p2.position.w();

View file

@ -796,7 +796,7 @@ static bool decode_dds(DDSLoadingContext& context)
decode_bitmap(stream, context, format, width, height);
// We support parsing mipmaps, but we only care about the largest one :^) (Atleast for now)
// We support parsing mipmaps, but we only care about the largest one :^) (At least for now)
break;
}
@ -1020,7 +1020,7 @@ bool DDSImageDecoderPlugin::set_nonvolatile(bool& was_purged)
bool DDSImageDecoderPlugin::sniff()
{
// The header is always atleast 128 bytes, so if the file is smaller, it cant be a DDS.
// The header is always at least 128 bytes, so if the file is smaller, it can't be a DDS.
return m_context->data_size > 128
&& m_context->data[0] == 0x44
&& m_context->data[1] == 0x44

View file

@ -651,7 +651,7 @@ BigInt* round_number_to_increment(GlobalObject& global_object, BigInt const& x,
// 3. Let quotient be x / increment.
auto division_result = x.big_integer().divided_by(increment_big_int);
// OPTIMIZATION: If theres no remainder there number is already rounded
// OPTIMIZATION: If there's no remainder the number is already rounded
if (division_result.remainder == Crypto::UnsignedBigInteger { 0 })
return js_bigint(heap, x.big_integer());

View file

@ -403,7 +403,7 @@ MAKE_AK_BACKED2(remainder);
long double truncl(long double x) NOEXCEPT
{
if (fabsl(x) < LONG_LONG_MAX) {
// This is 1.6 times faster than the implemenation using the "internal_to_integer"
// This is 1.6 times faster than the implementation using the "internal_to_integer"
// helper (on x86_64)
// https://quick-bench.com/q/xBmxuY8am9qibSYVna90Y6PIvqA
u64 temp;

View file

@ -122,7 +122,7 @@ private:
struct Token {
String data;
// Flanking basically means that a delimiter run has a non-whitespace,
// non-punctuation character on the corresponsing side. For a more exact
// non-punctuation character on the corresponding side. For a more exact
// definition, see the CommonMark spec.
bool left_flanking;
bool right_flanking;

View file

@ -1195,7 +1195,7 @@ bool ECMA262Parser::parse_quantifier(ByteCode& stack, size_t& match_length_minim
repetition_mark = Repetition::Explicit;
if (!parse_interval_quantifier(repeat_min, repeat_max)) {
if (unicode) {
// Invalid interval quantifiers are disallowed in Unicode mod - they must be esacped with '\{'.
// Invalid interval quantifiers are disallowed in Unicode mod - they must be escaped with '\{'.
set_error(Error::InvalidPattern);
}
return !has_error();

View file

@ -368,7 +368,7 @@ ByteBuffer TLSv12::build_client_key_exchange()
TODO();
break;
default:
dbgln("Unknonwn client key exchange algorithm");
dbgln("Unknown client key exchange algorithm");
VERIFY_NOT_REACHED();
break;
}

View file

@ -229,7 +229,7 @@ ssize_t TLSv12::handle_server_key_exchange(ReadonlyBytes buffer)
TODO();
break;
default:
dbgln("Unknonwn server key exchange algorithm");
dbgln("Unknown server key exchange algorithm");
VERIFY_NOT_REACHED();
break;
}

View file

@ -209,7 +209,7 @@ void paint_all_borders(PaintContext& context, Gfx::FloatRect const& bordered_rec
Painting::paint_border(context, Painting::BorderEdge::Bottom, bottom_border_rect, border_radius_data, borders_data);
Painting::paint_border(context, Painting::BorderEdge::Left, left_border_rect, border_radius_data, borders_data);
// Draws a quarter cirle clockwise
// Draws a quarter circle clockwise
auto draw_quarter_circle = [&](Gfx::FloatPoint const& from, Gfx::FloatPoint const& to, Gfx::Color color, int thickness) {
Gfx::FloatPoint center = { 0, 0 };
Gfx::FloatPoint offset = { 0, 0 };