Skip to content

Commit

Permalink
Everywhere: Fix a few typos
Browse files Browse the repository at this point in the history
Some even user-visible!
  • Loading branch information
nico authored and linusg committed Apr 12, 2023
1 parent 3d10132 commit f56b897
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion AK/ByteBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class ByteBuffer {
// the caller is perhaps appending very little data in many calls.
// To avoid copying the entire ByteBuffer every single time,
// we raise the capacity exponentially, by a factor of roughly 1.5.
// This is most noticable in Lagom, where kmalloc_good_size is just a no-op.
// This is most noticeable in Lagom, where kmalloc_good_size is just a no-op.
new_capacity = max(new_capacity, (capacity() * 3) / 2);
new_capacity = kmalloc_good_size(new_capacity);
auto* new_buffer = static_cast<u8*>(kmalloc(new_capacity));
Expand Down
2 changes: 1 addition & 1 deletion AK/FixedPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class FixedPoint {
bool operator<(This const& other) const { return raw() < other.raw(); }
bool operator<=(This const& other) const { return raw() <= other.raw(); }

// FIXE: There are probably better ways to do these
// FIXME: There are probably better ways to do these
template<Integral I>
bool operator==(I other) const
{
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Links.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This is a roughly categorized list of pages relating to SerenityOS and its subpr

- [GitHub Organization](https://github.com/SerenityOS) and [GitHub Repositories](https://github.com/orgs/SerenityOS/repositories)
- [Changelog](https://changelog.serenityos.org/)
- [Issues Found by OSS-Fuzz Continous Fuzzing](https://bugs.chromium.org/p/oss-fuzz/issues/list?q=label:Proj-serenity)
- [Issues Found by OSS-Fuzz Continuous Fuzzing](https://bugs.chromium.org/p/oss-fuzz/issues/list?q=label:Proj-serenity)
- [Azure CI Overview](https://dev.azure.com/SerenityOS/SerenityOS/_build)
- [SonarCloud Static Analysis](https://sonarcloud.io/project/overview?id=SerenityOS_serenity)
- [libjs.dev](https://libjs.dev/)
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibGfx/GradientPainting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ void CanvasRadialGradientPaintStyle::paint(IntRect physical_bounding_box, PaintF
// - Start circle radius == end circle radius
// - Start circle larger than end circle (inside end circle)
// - Start circle larger than end circle (outside end circle)
// - Start cirlce or end circle radius == 0
// - Start circle or end circle radius == 0

Gradient radial_gradient {
move(gradient_line),
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c
TransformType transform_type = static_cast<TransformType>(TRY(bit_stream.read_bits(2)));
dbgln_if(WEBP_DEBUG, "transform type {}", (int)transform_type);

// Check that each transfom is used only once.
// Check that each transform is used only once.
u8 mask = 1 << (int)transform_type;
if (seen_transforms & mask)
return context.error("WebPImageDecoderPlugin: transform type used multiple times");
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibPDF/Fonts/CFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ PDFErrorOr<NonnullRefPtr<CFF>> CFF::create(ReadonlyBytes const& cff_bytes, RefPt
});
}));

// Create glpyhs (now that we have the subroutines) and associate missing information to store them and their encoding
// Create glyphs (now that we have the subroutines) and associate missing information to store them and their encoding
auto glyphs = TRY(parse_charstrings(Reader(cff_bytes.slice(charstrings_offset)), subroutines));
auto charset = TRY(parse_charset(Reader { cff_bytes.slice(charset_offset) }, glyphs.size()));

Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::fetch_resource(AK::URL const& url_re
process_media_data(move(failure_callback)).release_value_but_fixme_should_propagate_errors();

// NOTE: The spec does not say exactly when to update the readyState attribute. Rather, it describes what
// each step requires, and leaves it up to the user agent to determine when those requirments are
// each step requires, and leaves it up to the user agent to determine when those requirements are
// reached: https://html.spec.whatwg.org/multipage/media.html#ready-states
//
// Since we fetch the entire response at once, if we reach here with successfully decoded video
Expand Down
6 changes: 3 additions & 3 deletions Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ void SVGGraphicsElement::parse_attribute(DeprecatedFlyString const& name, Deprec
}
}

Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> tranform_list)
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> transform_list)
{
Gfx::AffineTransform affine_transform;
auto to_radians = [](float degrees) {
return degrees * (AK::Pi<float> / 180.0f);
};
for (auto& tranform : tranform_list) {
tranform.operation.visit(
for (auto& transform : transform_list) {
transform.operation.visit(
[&](Transform::Translate const& translate) {
affine_transform.multiply(Gfx::AffineTransform {}.translate({ translate.x, translate.y }));
},
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class SVGGraphicsElement : public SVGElement {
Gfx::AffineTransform m_transform = {};
};

Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> tranform_list);
Gfx::AffineTransform transform_from_transform_list(ReadonlySpan<Transform> transform_list);

}
4 changes: 2 additions & 2 deletions Userland/Utilities/sed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct OptionalLabelArgument {
{
auto blanks = lexer.consume_while(is_ascii_blank);
if (blanks.is_empty())
return SedError::parsing_error(lexer, "expected one or more blank characeters"sv);
return SedError::parsing_error(lexer, "expected one or more blank characters"sv);
if (lexer.next_is(is_command_separator))
return ArgsT {};
return ArgsT { lexer.consume_until(is_command_separator) };
Expand All @@ -219,7 +219,7 @@ struct FilepathArgument {
{
auto blanks = lexer.consume_while(is_ascii_blank);
if (blanks.is_empty())
return SedError::parsing_error(lexer, "expected one or more blank characeters"sv);
return SedError::parsing_error(lexer, "expected one or more blank characters"sv);
auto filepath = lexer.consume_until(is_command_separator);
if (filepath.is_empty())
return SedError::parsing_error(lexer, "input filename expected, none found");
Expand Down

0 comments on commit f56b897

Please sign in to comment.