Skip to content

Commit

Permalink
Everywhere: Fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjz19910 authored and linusg committed Jan 7, 2022
1 parent 1680638 commit 10ec98d
Show file tree
Hide file tree
Showing 56 changed files with 90 additions and 90 deletions.
4 changes: 2 additions & 2 deletions AK/Weakable.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class WeakLink : public RefCounted<WeakLink> {
{
auto current_consumers = m_consumers.fetch_or(1u, AK::MemoryOrder::memory_order_relaxed);
VERIFY(!(current_consumers & 1u));
// We flagged revokation, now wait until everyone trying to obtain
// We flagged revocation, now wait until everyone trying to obtain
// a strong reference is done
while (current_consumers > 0) {
#ifdef KERNEL
Expand All @@ -94,7 +94,7 @@ class WeakLink : public RefCounted<WeakLink> {
{
}
mutable Atomic<void*> m_ptr;
mutable Atomic<unsigned> m_consumers; // LSB indicates revokation in progress
mutable Atomic<unsigned> m_consumers; // LSB indicates revocation in progress
};

template<typename T>
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion Base/res/html/misc/lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ <h2>ol</h2>
</ol>

<p>list-style: outside lower-roman url(list-file.png)</p>
<ol style="list-style: outside lower-roman url(custome-list-item-2.png);">
<ol style="list-style: outside lower-roman url(custom-list-item-2.png);">
<li>First</li>
<li>Second</li>
<li>Third</li>
Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man1/chmod.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The letters `[+-=]` controls which action will be taken: `+` sets the permission

The letters `[rwx]` controls which permission will be changes: `r` is read, `w` is write and `x` is execute.

A numeric mode is combination of 1 to 4 numbers. Omitted digits are assumet to be leading zeros. The first digit select the set user ID (4), set group ID (2) and restricted deletion / sticky (1) attributes. The second, third and fourth digit controls permissions of each user group: owner, owning group and others (not owner or owning group), respectively: read (4), write (2) and execute (1).
A numeric mode is combination of 1 to 4 numbers. Omitted digits are assumed to be leading zeros. The first digit select the set user ID (4), set group ID (2) and restricted deletion / sticky (1) attributes. The second, third and fourth digit controls permissions of each user group: owner, owning group and others (not owner or owning group), respectively: read (4), write (2) and execute (1).

## Examples

Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man1/copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ $ copy [options...] [text...]
# Copy some image to clipboard
$ cat image.png | copy -t image/png

# Place text 'foo' in clupboard
# Place text 'foo' in clipboard
$ copy foo
```
4 changes: 2 additions & 2 deletions Base/usr/share/man/man7/Audio-subsystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LibAudio is the baseline audio library that provides common audio abstractions,

#### LibDSP

LibDSP is the digital signal processing library. It provides structures for audio editing programs, such as tracks and clips, while both dealing with MIDI data and sample data. More important is the Processor system, which allows synthesizers, samplers, sequencers, effects, etc. to be written with a common interface and be combined into chains for unlimited DSP (and musical) potential. The ProcessorParameters provide an interface for changing processor parameters programatically or through a UI.
LibDSP is the digital signal processing library. It provides structures for audio editing programs, such as tracks and clips, while both dealing with MIDI data and sample data. More important is the Processor system, which allows synthesizers, samplers, sequencers, effects, etc. to be written with a common interface and be combined into chains for unlimited DSP (and musical) potential. The ProcessorParameters provide an interface for changing processor parameters programmatically or through a UI.

LibDSP was started to support development efforts in Piano, but it is intended as a general-purpose audio processing library, building on the groundwork from LibAudio. Therefore, users of LibDSP must be familiar with LibAudio classes and concepts, as they are used extensively in LibDSP.

Expand All @@ -46,7 +46,7 @@ Audio volume is more complicated than just multiplying a (digital or analog) aud

For the SerenityOS audio system, the following applies: Userland applications and libraries that do their own volume changes need to be aware of the nature of volume. LibAudio provides utility functions for correctly handling volume, so these are to be used whenever applicable. For AudioServer, main and per-client volume is already handled correctly; to the outside, volume is linear between 0 and 1.

For example: A program may set its client volume to 0.5 and the audio will be percieved as half as loud by a human. However, if the program wishes to change the volume beforehand, it needs to use logarithmic scaling, for example with LibAudio's built-in functionality.
For example: A program may set its client volume to 0.5 and the audio will be perceived as half as loud by a human. However, if the program wishes to change the volume beforehand, it needs to use logarithmic scaling, for example with LibAudio's built-in functionality.

### Sample rate

Expand Down
4 changes: 2 additions & 2 deletions Base/usr/share/man/man7/proc.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ them.

### `sys` directory

This subdirectoy includes global settings of the kernel.
This subdirectory includes global settings of the kernel.

* **`caps_lock_to_ctrl`** - this node controls remapping of of caps lock to the Ctrl key.
* **`kmalloc_stacks`** - this node controls whether to send information about kmalloc to debug log.
* **`ubsan_is_deadly`** - this node controls the deadliness of the kernel undefinied behavior
* **`ubsan_is_deadly`** - this node controls the deadliness of the kernel undefined behavior
sanitizer errors.

### Per process entries
Expand Down
2 changes: 1 addition & 1 deletion Base/usr/share/man/man8/groupadd.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ This program must be run as root.

```sh
# groupadd -g 110 contributors
# groupadd mainteners
# groupadd maintainers
```

2 changes: 1 addition & 1 deletion Documentation/BuildInstructionsMacOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Prerequisites

This installation guide assumes that you have [Homebrew](https://brew.sh) and Xcode installed. You need to open Xcode atleast once for it to install the required tools.
This installation guide assumes that you have [Homebrew](https://brew.sh) and Xcode installed. You need to open Xcode at least once for it to install the required tools.

Before you build, you must set your command line tools to Xcode's tools instead of the ones installed via Homebrew:
```console
Expand Down
4 changes: 2 additions & 2 deletions Documentation/NetworkBoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This guide assumes several things:

- The TFTP server root is `/srv/tftp/`
- Bootloaders are located inside `/srv/tftp/boot/`
- SerenityOS artefacts are located inside `/srv/tftp/serenity/`:
- SerenityOS artifacts are located inside `/srv/tftp/serenity/`:
- The prekernel is located at `/srv/tftp/serenity/prekernel`
- You can find it at `Build/i686/Kernel/Prekernel/Prekernel`
- The kernel is located at `/srv/tftp/serenity/kernel`
Expand Down Expand Up @@ -134,7 +134,7 @@ LABEL SerenityOS
### Troubleshooting

- Issues with DHCP or TFTP usually require sniffing packets on the network to figure out.
- TFTP is a slow protocol, transferring the QEMU disk image (~ 200 MiB) will take some time. Consider setting up a FTP or HTTP server for faster downloading of SerenityOS artefacts if your bootloader supports it.
- TFTP is a slow protocol, transferring the QEMU disk image (~ 200 MiB) will take some time. Consider setting up a FTP or HTTP server for faster downloading of SerenityOS artifacts if your bootloader supports it.
- Remember that SerenityOS has not been extensively tested on physical hardware.
- Some BIOS implementations of PXE are buggy or some machines may not have a PXE boot option at all in which case you could try using [iPXE](https://ipxe.org/).
- Virtual machines can also be booted over the network. Cheat notes for QEMU on Linux, assuming `br0` is already set up:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ See: https://en.cppreference.com/w/cpp/utility/source_location
`AK::SourceLocation` is the implementation of this feature in
SerenityOS. It's become the idiomatic way to capture the location
when adding extra debugging instrumentation, without resorting to
litering the code with preprocessor macros.
littering the code with preprocessor macros.
To use it, you can add the `AK::SourceLocation` as a default argument
to any function, using `AK::SourceLocation::current()` to initialize the
Expand Down
2 changes: 1 addition & 1 deletion Documentation/SelfHostedRunners.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUST_WHITELISTED_EVENT_NAME=push
```shell
MAX_RUNNER_THREADS=XXX
```
If you are setting up multiple runners on the same machine, this setting can be used to divvy up the cores, if youre only setting up one runner, this can just be set to the server's core count
If you are setting up multiple runners on the same machine, this setting can be used to divvy up the cores, if you're only setting up one runner, this can just be set to the server's core count
### Install the runner as a service
```shell
sudo ./svc.sh install
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Arch/x86/Interrupts.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ VALIDATE_IS_X86()

namespace Kernel {

class GenericInterruptHandeler;
class GenericInterruptHandler;

extern "C" void interrupt_common_asm_entry();

Expand Down
2 changes: 1 addition & 1 deletion Kernel/FileSystem/TmpFS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ErrorOr<size_t> TmpFSInode::write_bytes(off_t offset, size_t size, const UserOrK
if (m_content && static_cast<off_t>(m_content->capacity()) >= new_size) {
m_content->set_size(new_size);
} else {
// Grow the content buffer 2x the new sizeto accommodate repeating write() calls.
// Grow the content buffer 2x the new size to accommodate repeating write() calls.
// Note that we're not actually committing physical memory to the buffer
// until it's needed. We only grow VM here.

Expand Down
4 changes: 2 additions & 2 deletions Kernel/FileSystem/ext2_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ struct ext2_group_desc {
__u16 bg_flags;
__u32 bg_reserved[2];
__u16 bg_itable_unused; /* Unused inodes count */
__u16 bg_checksum; /* crc16(s_uuid+grouo_num+group_desc)*/
__u16 bg_checksum; /* crc16(s_uuid+group_num+group_desc)*/
};

struct ext4_group_desc {
Expand All @@ -151,7 +151,7 @@ struct ext4_group_desc {
__u16 bg_flags;
__u32 bg_reserved[2];
__u16 bg_itable_unused; /* Unused inodes count */
__u16 bg_checksum; /* crc16(s_uuid+grouo_num+group_desc)*/
__u16 bg_checksum; /* crc16(s_uuid+group_num+group_desc)*/
__u32 bg_block_bitmap_hi; /* Blocks bitmap block MSB */
__u32 bg_inode_bitmap_hi; /* Inodes bitmap block MSB */
__u32 bg_inode_table_hi; /* Inodes table block MSB */
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Graphics/Bochs/GraphicsAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ UNMAP_AFTER_INIT BochsGraphicsAdapter::BochsGraphicsAdapter(PCI::DeviceIdentifie
, m_mmio_registers(PCI::get_BAR2(pci_device_identifier.address()) & 0xfffffff0)
, m_registers(Memory::map_typed_writable<BochsDisplayMMIORegisters volatile>(m_mmio_registers))
{
// We assume safe resolutio is 1024x768x32
// We assume safe resolution is 1024x768x32
m_framebuffer_console = Graphics::ContiguousFramebufferConsole::initialize(PhysicalAddress(PCI::get_BAR0(pci_device_identifier.address()) & 0xfffffff0), 1024, 768, 1024 * sizeof(u32));
// FIXME: This is a very wrong way to do this...
GraphicsManagement::the().m_console = m_framebuffer_console;
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Prekernel/Arch/aarch64/Mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool Mailbox::send_queue(void* queue, u32 queue_size) const

auto& mmio = MMIO::the();

// The mailbox interface has a FIFO for message deliverly in both directions.
// The mailbox interface has a FIFO for message delivery in both directions.
// Responses can be delivered out of order to requests, but we currently ever only send on request at once.
// It'd be nice to have an async interface here where we send a message, then return immediately, and read the response when an interrupt arrives.
// But for now, this is synchronous.
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class Process final
NonnullOwnPtrVector<KString> const& arguments() const { return m_arguments; };
NonnullOwnPtrVector<KString> const& environment() const { return m_environment; };

ErrorOr<void> exec(NonnullOwnPtr<KString> path, NonnullOwnPtrVector<KString> arguments, NonnullOwnPtrVector<KString> environment, int recusion_depth = 0);
ErrorOr<void> exec(NonnullOwnPtr<KString> path, NonnullOwnPtrVector<KString> arguments, NonnullOwnPtrVector<KString> environment, int recursion_depth = 0);

ErrorOr<LoadResult> load(NonnullRefPtr<OpenFileDescription> main_program_description, RefPtr<OpenFileDescription> interpreter_description, const ElfW(Ehdr) & main_program_header);

Expand Down
2 changes: 1 addition & 1 deletion Meta/CMake/Superbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ get_filename_component(
ABSOLUTE CACHE
)
set(SERENITY_ARCH "i686" CACHE STRING "Target architecture for SerenityOS.")
set(SERENITY_TOOLCHAIN "GNU" CACHE STRING "Compliler toolchain to use for Serenity (GNU or Clang)")
set(SERENITY_TOOLCHAIN "GNU" CACHE STRING "Compiler toolchain to use for Serenity (GNU or Clang)")

# FIXME: It is preferred to keep all the sub-build artifacts below the binary directory for the superbuild
# However, this has an impact on developer's IDE settings and more significantly, the Ports tree.
Expand Down
6 changes: 3 additions & 3 deletions Meta/Lagom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ if (BUILD_LAGOM)

# ELF
file(GLOB LIBELF_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibELF/*.cpp")
# There's no way we can reliably make the dymamic loading classes cross platform
# There's no way we can reliably make the dynamic loading classes cross platform
list(FILTER LIBELF_SOURCES EXCLUDE REGEX ".*Dynamic.*.cpp$")
lagom_lib(ELF elf
SOURCES ${LIBELF_SOURCES}
Expand All @@ -316,9 +316,9 @@ if (BUILD_LAGOM)

# GL
file(GLOB LIBGL_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/*.cpp")
file(GLOB LIBGL_TEX_SCOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/Tex/*.cpp")
file(GLOB LIBGL_TEX_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/Tex/*.cpp")
lagom_lib(GL gl
SOURCES ${LIBGL_SOURCES} ${LIBGL_TEX_SCOURCES}
SOURCES ${LIBGL_SOURCES} ${LIBGL_TEX_SOURCES}
LIBS m LagomGfx LagomSoftGPU)

# GUI-GML
Expand Down
2 changes: 1 addition & 1 deletion Meta/Lagom/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Lagom can be used to fuzz parts of SerenityOS's code base. Fuzzers can be run lo

### Fuzzing locally

Lagom can be used to fuzz parts of SerenityOS's code base. This requires buildling with `clang`, so it's convenient to use a different build directory for that. Fuzzers work best with Address Sanitizer enabled. Run CMake like this:
Lagom can be used to fuzz parts of SerenityOS's code base. This requires building with `clang`, so it's convenient to use a different build directory for that. Fuzzers work best with Address Sanitizer enabled. Run CMake like this:

# From the root of the SerenityOS checkout:
cmake -GNinja -S Meta/Lagom -B Build/lagom-fuzzers \
Expand Down
2 changes: 1 addition & 1 deletion Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class UniqueStorage {
IndexType ensure(StorageType value)
{
// We maintain a set of unique values in two structures: a vector which stores the values in
// the order they are added, and a hash map which maps that value to its index in the vetor.
// the order they are added, and a hash map which maps that value to its index in the vector.
// The vector is to ensure the values are generated in an easily known order, and the map is
// to allow quickly deciding if a value is actually unique (otherwise, we'd have to linearly
// search the vector for each value).
Expand Down
2 changes: 1 addition & 1 deletion Meta/Websites/serenityos.org/happy/3rd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ <h1>Monthly update videos</h1>
<footer>
<h2>Thanks</h2>

<p>To all the awesome people who have particpated in the last year, writing code,
<p>To all the awesome people who have participated in the last year, writing code,
bug reports, documentation, commenting/liking/sharing my videos, sending letters,
chilling on Discord, coming to the Office Hours livestreams, telling your friends,
etc, thank you all!
Expand Down
2 changes: 1 addition & 1 deletion Tests/AK/TestArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static constexpr int constexpr_sum(const Span<const int> span)
return sum;
}

TEST_CASE(compile_time_contructible)
TEST_CASE(compile_time_constructible)
{
constexpr Array<int, 4> array = { 0, 1, 2, 3 };
static_assert(array.size() == 4);
Expand Down
2 changes: 1 addition & 1 deletion Tests/AK/TestSpan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TEST_CASE(constexpr_default_constructor_is_empty)
static_assert(span.is_empty(), "Default constructed span should be empty.");
}

TEST_CASE(implicit_converson_to_const)
TEST_CASE(implicit_conversion_to_const)
{
constexpr Bytes bytes0;
[[maybe_unused]] constexpr ReadonlyBytes bytes2 = bytes0;
Expand Down
2 changes: 1 addition & 1 deletion Tests/AK/TestTypeTraits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
static_assert(!trait<__VA_ARGS__>)

enum class Enummer : u8 {
Dummmy,
Dummy
};

TEST_CASE(FundamentalTypeClassification)
Expand Down
4 changes: 2 additions & 2 deletions Tests/LibC/TestStackSmash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <AK/Format.h>
#include <LibTest/TestCase.h>

// Note: Needs to be 'noline' so stack canary isn't optimized out.
// Note: Needs to be 'noinline' so stack canary isn't optimized out.
static void __attribute__((noinline)) smasher(char* string)
{
#pragma GCC diagnostic push
Expand All @@ -18,7 +18,7 @@ static void __attribute__((noinline)) smasher(char* string)
#pragma GCC diagnostic pop
}

// Note: Needs to be 'noline' so stack canary isn't optimized out.
// Note: Needs to be 'noinline' so stack canary isn't optimized out.
static void __attribute__((noinline)) stack_to_smash()
{
char string[8] = {};
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Debugger/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ int main(int argc, char** argv)
bool no_source_info = !source_position.has_value();
if (no_source_info || source_position.value() != previous_source_position) {
if (no_source_info)
outln("No source information for current instruction! stoppoing.");
outln("No source information for current instruction! stopping.");
in_step_line = false;
} else {
return Debug::DebugSession::DebugDecision::SingleStep;
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/JSIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Spreadsheet {
Optional<FunctionAndArgumentIndex> get_function_and_argument_index(StringView source)
{
JS::Lexer lexer { source };
// Track <identifier> <OpenParen>'s, and how many complete expressions are inside the parenthesised expression.
// Track <identifier> <OpenParen>'s, and how many complete expressions are inside the parenthesized expression.
Vector<size_t> state;
StringView last_name;
Vector<StringView> names;
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/Readers/XSV.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct ParserTraits {
E(NonConformingColumnCount, "Header count does not match given column count") \
E(QuoteFailure, "Quoting failure") \
E(InternalError, "Internal error") \
E(DataPastLogicalEnd, "Exrta data past the logical end of the rows")
E(DataPastLogicalEnd, "Extra data past the logical end of the rows")

enum class ReadError {
#define E(name, _) name,
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/select_format_page.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@GUI::Label {
text: "Please double-check the guessed file type\nor select the correct one below"
text_aliignment: "TopLeft"
text_alignment: "TopLeft"
fixed_height: 32
}

Expand Down
2 changes: 1 addition & 1 deletion Userland/Demos/Fire/Fire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void Fire::timer_event(Core::TimerEvent&)
if (phase > 1)
phase = 0;

/* Paint our palletized buffer to screen */
/* Paint our palettized buffer to screen */
for (int px = 0 + phase; px < FIRE_WIDTH; px += 2) {
for (int py = 1; py < FIRE_HEIGHT; py++) {
int rnd = rand() % 3;
Expand Down
Loading

0 comments on commit 10ec98d

Please sign in to comment.