diff options
author | Nico Weber <thakis@chromium.org> | 2021-09-30 20:03:41 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-01 01:06:40 +0100 |
commit | de723329205c8242cf78dcc6f028bc9fece85059 (patch) | |
tree | 079f131226dc6c617f5b4b8887438c905f6d4318 | |
parent | 9ec9886b04b1388c3996d11e516cda6cc6052dba (diff) | |
download | serenity-de723329205c8242cf78dcc6f028bc9fece85059.zip |
Libraries: Fix typos
-rw-r--r-- | Userland/Libraries/LibGL/Clipper.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/DDSLoader.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibM/math.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibMarkdown/Text.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibRegex/RegexParser.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibTLS/HandshakeClient.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibTLS/HandshakeServer.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/BorderPainting.cpp | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/Userland/Libraries/LibGL/Clipper.cpp b/Userland/Libraries/LibGL/Clipper.cpp index 17114491ff..7da384e592 100644 --- a/Userland/Libraries/LibGL/Clipper.cpp +++ b/Userland/Libraries/LibGL/Clipper.cpp @@ -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(); diff --git a/Userland/Libraries/LibGfx/DDSLoader.cpp b/Userland/Libraries/LibGfx/DDSLoader.cpp index 430bcdeab3..a6e5041fdd 100644 --- a/Userland/Libraries/LibGfx/DDSLoader.cpp +++ b/Userland/Libraries/LibGfx/DDSLoader.cpp @@ -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 diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 5ca8f179cc..3a5a73c567 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -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()); diff --git a/Userland/Libraries/LibM/math.cpp b/Userland/Libraries/LibM/math.cpp index 50d3ffbb67..40eecdcf94 100644 --- a/Userland/Libraries/LibM/math.cpp +++ b/Userland/Libraries/LibM/math.cpp @@ -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; diff --git a/Userland/Libraries/LibMarkdown/Text.h b/Userland/Libraries/LibMarkdown/Text.h index f67aa5a149..0c9a1eeff6 100644 --- a/Userland/Libraries/LibMarkdown/Text.h +++ b/Userland/Libraries/LibMarkdown/Text.h @@ -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; diff --git a/Userland/Libraries/LibRegex/RegexParser.cpp b/Userland/Libraries/LibRegex/RegexParser.cpp index c60bcbaea6..ad48e4e709 100644 --- a/Userland/Libraries/LibRegex/RegexParser.cpp +++ b/Userland/Libraries/LibRegex/RegexParser.cpp @@ -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(); diff --git a/Userland/Libraries/LibTLS/HandshakeClient.cpp b/Userland/Libraries/LibTLS/HandshakeClient.cpp index 462a4a72fa..7299f3418a 100644 --- a/Userland/Libraries/LibTLS/HandshakeClient.cpp +++ b/Userland/Libraries/LibTLS/HandshakeClient.cpp @@ -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; } diff --git a/Userland/Libraries/LibTLS/HandshakeServer.cpp b/Userland/Libraries/LibTLS/HandshakeServer.cpp index def2a9f5c2..7c3e37cf13 100644 --- a/Userland/Libraries/LibTLS/HandshakeServer.cpp +++ b/Userland/Libraries/LibTLS/HandshakeServer.cpp @@ -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; } diff --git a/Userland/Libraries/LibWeb/Painting/BorderPainting.cpp b/Userland/Libraries/LibWeb/Painting/BorderPainting.cpp index 3bcfeb3963..a8781071aa 100644 --- a/Userland/Libraries/LibWeb/Painting/BorderPainting.cpp +++ b/Userland/Libraries/LibWeb/Painting/BorderPainting.cpp @@ -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 }; |