mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:57:44 +00:00
Everywhere: Fix many spelling errors
This commit is contained in:
parent
6bf91d00ef
commit
3102d8e160
39 changed files with 73 additions and 73 deletions
|
@ -96,14 +96,14 @@ public:
|
|||
bool unreliable_eof() const override { return eof(); }
|
||||
bool eof() const { return m_queue.size() == 0; }
|
||||
|
||||
size_t remaining_contigous_space() const
|
||||
size_t remaining_contiguous_space() const
|
||||
{
|
||||
return min(Capacity - m_queue.size(), m_queue.capacity() - (m_queue.head_index() + m_queue.size()) % Capacity);
|
||||
}
|
||||
|
||||
Bytes reserve_contigous_space(size_t count)
|
||||
Bytes reserve_contiguous_space(size_t count)
|
||||
{
|
||||
VERIFY(count <= remaining_contigous_space());
|
||||
VERIFY(count <= remaining_contiguous_space());
|
||||
|
||||
Bytes bytes { m_queue.m_storage + (m_queue.head_index() + m_queue.size()) % Capacity, count };
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ public:
|
|||
return !this->m_value;
|
||||
}
|
||||
// Intentionally don't define `operator bool() const` here. C++ is a bit
|
||||
// overzealos, and whenever there would be a type error, C++ instead tries
|
||||
// overzealous, and whenever there would be a type error, C++ instead tries
|
||||
// to convert to a common int-ish type first. `bool` is int-ish, so
|
||||
// `operator bool() const` would defy the entire point of this class.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue