Skip to content

Commit 1799b7c

Browse files
authored
Merge pull request #1208 from ingve/goatremoval
Comment/typo fixes
2 parents 6b79a3a + e82a7d5 commit 1799b7c

10 files changed

Lines changed: 14 additions & 14 deletions

File tree

api/fs/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,4 @@ namespace fs {
205205

206206
} //< namespace fs
207207

208-
#endif //< FS_ERROR_HPP
208+
#endif //< FS_COMMON_HPP

api/net/http/connection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace http {
6767
inline TCP_conn release();
6868

6969
/**
70-
* @brief Wether the underlying TCP connection has been released or not
70+
* @brief Whether the underlying TCP connection has been released or not
7171
*
7272
* @return true if the underlying TCP connection is released
7373
*/

api/net/http/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Message {
9999
*
100100
* @param[in] len The length of the content
101101
*
102-
* @return Outcome of wether the field got updated or not
102+
* @return Outcome of whether the field got updated or not
103103
*/
104104
inline bool set_content_length(size_t len);
105105

api/net/tcp/connection.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class Connection : public std::enable_shared_from_this<Connection> {
642642
void writeq_reset();
643643

644644
/*
645-
Mark wether the Connection is in TCP write queue or not.
645+
Mark whether the Connection is in TCP write queue or not.
646646
*/
647647
void set_queued(bool queued)
648648
{ queued_ = queued; }
@@ -888,7 +888,7 @@ class Connection : public std::enable_shared_from_this<Connection> {
888888
void timewait_timeout()
889889
{ signal_close(); }
890890

891-
/** Wether to use Delayed ACK or not */
891+
/** Whether to use Delayed ACK or not */
892892
bool use_dack() const;
893893

894894
/**

api/net/tcp/rttm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct RTTM {
6060
{}
6161

6262
/**
63-
* @brief Returns wether the RTTM is currently "measuring" (time is set)
63+
* @brief Returns whether the RTTM is currently "measuring" (time is set)
6464
*
6565
* @return True if the RTTM is active (measuring)
6666
*/

api/net/tcp/tcp.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace net {
6969
* map of listeners
7070
*
7171
* @param port listening port
72-
* @return wether the listener had a port
72+
* @return whether the listener had a port
7373
*/
7474
bool unbind(const tcp::port_t port);
7575

@@ -188,10 +188,10 @@ namespace net {
188188
{ return wscale_; }
189189

190190
/**
191-
* @brief Returns wether this TCP is using window scaling.
191+
* @brief Returns whether this TCP is using window scaling.
192192
* A wscale factor of 0 means off.
193193
*
194-
* @return Wether wscale is being used
194+
* @return Whether wscale is being used
195195
*/
196196
constexpr bool uses_wscale() const
197197
{ return wscale_ > 0; }

api/util/chunk.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Chunk {
121121
Chunk operator+(const Chunk& c);
122122

123123
/**
124-
* @brief Check wether the chunk is valid/not empty
124+
* @brief Check whether the chunk is valid/not empty
125125
*/
126126
operator bool() const noexcept
127127
{ return static_cast<bool>(buffer_) and (length_ > 0); }

api/util/timer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Timer {
8989
/**
9090
* @brief If the timer is running (active)
9191
*
92-
* @return Wether the timer is running or not
92+
* @return whether the timer is running or not
9393
*/
9494
bool is_running() const
9595
{ return id_ != Timers::UNUSED_ID; }

lib/mana/include/mana/middleware/butler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Butler : public Middleware {
7171
* @details Very bad but easy way to assume the path is a request for a file.
7272
*
7373
* @param path
74-
* @return wether a path is a file request or not
74+
* @return whether a path is a file request or not
7575
*/
7676
inline bool is_file_request(const std::string& path) const
7777
{ return !get_extension(path).empty(); }

lib/mana/include/mana/response.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ class Response : public std::enable_shared_from_this<Response> {
131131
* Mostly used for replying with an error.
132132
*
133133
* @param[in] <unnamed> { parameter_description }
134-
* @param[in] close Wether to close the connection or not. Default = true
134+
* @param[in] close Whether to close the connection or not. Default = true
135135
*/
136136
void send_code(const Code, bool close = true);
137137

138138
/**
139139
* @brief Send the underlying Response as is.
140140
*
141-
* @param[in] force_close Wether to forcefully close the connection. Default = false
141+
* @param[in] force_close whether to forcefully close the connection. Default = false
142142
*/
143143
void send(bool force_close = false);
144144

0 commit comments

Comments
 (0)