Skip to content

Commit 1c01e18

Browse files
szepeviktorgmta
authored andcommitted
Everywhere: Fix even more typos
1 parent 77f6eda commit 1c01e18

31 files changed

+43
-43
lines changed

AK/StringView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ StringView::StringView(ByteBuffer const& buffer)
4747

4848
Vector<StringView> StringView::split_view(char const separator, SplitBehavior split_behavior) const
4949
{
50-
StringView seperator_view { &separator, 1 };
51-
return split_view(seperator_view, split_behavior);
50+
StringView separator_view { &separator, 1 };
51+
return split_view(separator_view, split_behavior);
5252
}
5353

5454
Vector<StringView> StringView::split_view(StringView separator, SplitBehavior split_behavior) const

AK/StringView.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class StringView {
153153
template<typename Callback>
154154
auto for_each_split_view(char separator, SplitBehavior split_behavior, Callback callback) const
155155
{
156-
StringView seperator_view { &separator, 1 };
157-
return for_each_split_view(seperator_view, split_behavior, callback);
156+
StringView separator_view { &separator, 1 };
157+
return for_each_split_view(separator_view, split_behavior, callback);
158158
}
159159

160160
template<typename Callback>

AK/Swift.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#if __has_include(<swift/bridging>)
1010
# include <swift/bridging>
1111
// FIXME: Workaround for Xcode 14/15. When swif becomes required, we should bump the
12-
// required Xcode verison to one that supports all the features we are using.
12+
// required Xcode version to one that supports all the features we are using.
1313
# ifndef SWIFT_UNCHECKED_SENDABLE
1414
# define SWIFT_UNCHECKED_SENDABLE
1515
# define SWIFT_NONCOPYABLE

AK/Utf16View.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ Optional<size_t> Utf16View::find_code_unit_offset(char16_t needle, size_t start_
270270

271271
Vector<Utf16View> Utf16View::split_view(char16_t separator, SplitBehavior split_behavior) const
272272
{
273-
Utf16View seperator_view { &separator, 1 };
274-
return split_view(seperator_view, split_behavior);
273+
Utf16View separator_view { &separator, 1 };
274+
return split_view(separator_view, split_behavior);
275275
}
276276

277277
Vector<Utf16View> Utf16View::split_view(Utf16View const& separator, SplitBehavior split_behavior) const

AK/Utf16View.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,8 @@ class Utf16View {
603603
template<typename Callback>
604604
constexpr void for_each_split_view(char16_t separator, SplitBehavior split_behavior, Callback&& callback) const
605605
{
606-
Utf16View seperator_view { &separator, 1 };
607-
for_each_split_view(seperator_view, split_behavior, forward<Callback>(callback));
606+
Utf16View separator_view { &separator, 1 };
607+
for_each_split_view(separator_view, split_behavior, forward<Callback>(callback));
608608
}
609609

610610
template<typename Callback>

Documentation/BuildInstructionsLadybird.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ sudo zypper install libpulse-devel
105105

106106
The build process requires at least python3.7; openSUSE Leap only features Python 3.6 as default, so it is recommendable to install the package `python312` and create a virtual environment (venv) in this case.
107107

108-
A virtual enviroment can be created in your home directory and once the `source` command is issued `python3 --version` will show that the current version is python 3.12 within the virtual environment shell session.
108+
A virtual environment can be created in your home directory and once the `source` command is issued `python3 --version` will show that the current version is python 3.12 within the virtual environment shell session.
109109
```
110110
python3.12 -m venv ~/python312_venv
111111
source ~/python312_venv/bin/activate

Documentation/CSSGeneratedFiles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ The generated code provides:
198198
- The `PseudoClassMetadata` struct which holds a representation of the data from the JSON file
199199
- `PseudoClassMetadata pseudo_class_metadata(PseudoClass)` to retrieve that data
200200

201-
## PsuedoElements.json
201+
## PseudoElements.json
202202

203203
This is a single JSON object, with pseudo-element names as keys and the values being objects with fields for the pseudo-element.
204-
This generated `PsuedoElement.h` and `PseudoElement.cpp`.
204+
This generated `PseudoElement.h` and `PseudoElement.cpp`.
205205

206206
Each entry has the following properties:
207207

Documentation/EditorConfiguration/NvimConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require('lspconfig').clangd.setup {
2222
-- you can delete this line.
2323
-- on_attach = ...,
2424

25-
-- This is where you'd put capabilities (i.e. if you're useing nvim-cmp)
25+
-- This is where you'd put capabilities (i.e. if you're using nvim-cmp)
2626
-- capabilities = ...,
2727

2828
-- If you have another clangd installation, put it here. Note that we use

Libraries/LibWeb/CSS/StyleComputer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class WEB_API StyleComputer final : public GC::Cell {
155155

156156
[[nodiscard]] RuleCache const& get_pseudo_class_rule_cache(PseudoClass) const;
157157

158-
[[nodiscard]] Vector<MatchingRule const*> collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional<CSS::PseudoElement>, PseudoClassBitmap& attempted_psuedo_class_matches, Optional<FlyString const> qualified_layer_name = {}) const;
158+
[[nodiscard]] Vector<MatchingRule const*> collect_matching_rules(DOM::Element const&, CascadeOrigin, Optional<CSS::PseudoElement>, PseudoClassBitmap& attempted_pseudo_class_matches, Optional<FlyString const> qualified_layer_name = {}) const;
159159

160160
InvalidationSet invalidation_set_for_properties(Vector<InvalidationSet::Property> const&) const;
161161
bool invalidation_property_used_in_has_selector(InvalidationSet::Property const&) const;

Tests/AK/TestEnumBits.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ enum class VideoIntro : u8 {
1313
Well = 0x1,
1414
Hello = 0x2,
1515
Friends = 0x4,
16-
ExclimationMark = 0x8,
17-
CompleteIntro = Well | Hello | Friends | ExclimationMark,
16+
ExclamationMark = 0x8,
17+
CompleteIntro = Well | Hello | Friends | ExclamationMark,
1818
};
1919

2020
AK_ENUM_BITWISE_OPERATORS(VideoIntro);
2121

2222
TEST_CASE(bitwise_or)
2323
{
24-
auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends | VideoIntro::ExclimationMark;
24+
auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends | VideoIntro::ExclamationMark;
2525
EXPECT_EQ(intro, VideoIntro::CompleteIntro);
2626
}
2727

@@ -34,7 +34,7 @@ TEST_CASE(bitwise_and)
3434
TEST_CASE(bitwise_xor)
3535
{
3636
auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends;
37-
EXPECT_EQ(intro ^ VideoIntro::CompleteIntro, VideoIntro::ExclimationMark);
37+
EXPECT_EQ(intro ^ VideoIntro::CompleteIntro, VideoIntro::ExclamationMark);
3838
}
3939

4040
TEST_CASE(bitwise_not)
@@ -46,7 +46,7 @@ TEST_CASE(bitwise_not)
4646
TEST_CASE(bitwise_or_equal)
4747
{
4848
auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends;
49-
EXPECT_EQ(intro |= VideoIntro::ExclimationMark, VideoIntro::CompleteIntro);
49+
EXPECT_EQ(intro |= VideoIntro::ExclamationMark, VideoIntro::CompleteIntro);
5050
}
5151

5252
TEST_CASE(bitwise_and_equal)
@@ -58,7 +58,7 @@ TEST_CASE(bitwise_and_equal)
5858
TEST_CASE(bitwise_xor_equal)
5959
{
6060
auto intro = VideoIntro::Well | VideoIntro::Hello | VideoIntro::Friends;
61-
EXPECT_EQ(intro ^= VideoIntro::CompleteIntro, VideoIntro::ExclimationMark);
61+
EXPECT_EQ(intro ^= VideoIntro::CompleteIntro, VideoIntro::ExclamationMark);
6262
}
6363

6464
TEST_CASE(has_flag)

0 commit comments

Comments
 (0)