Skip to content

Commit d544506

Browse files
authored
Minor improvements. (#3169)
1 parent d0f077f commit d544506

23 files changed

Lines changed: 30 additions & 30 deletions

‎CMake/GetGitRevisionDescription.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ get_filename_component(_gitdescmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
3535
# function returns an empty string via _git_dir_var.
3636
#
3737
# Example: Given a path C:/bla/foo/bar and assuming C:/bla/.git exists and
38-
# neither foo nor bar contain a file/directory .git. This wil return
38+
# neither foo nor bar contain a file/directory .git. This will return
3939
# C:/bla/.git
4040
#
4141
function(_git_find_closest_git_dir _start_dir _git_dir_var)

‎CMake/iOS.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ endif()
154154

155155
set (CMAKE_SHARED_LINKER_FLAGS_INIT "-fapplication-extension")
156156
set (CMAKE_C_FLAGS_INIT "${XCODE_IOS_PLATFORM_VERSION_FLAGS}")
157-
# Hidden visibilty is required for cxx on iOS
157+
# Hidden visibility is required for cxx on iOS
158158
set (CMAKE_CXX_FLAGS_INIT "${XCODE_IOS_PLATFORM_VERSION_FLAGS} -fvisibility-inlines-hidden")
159159

160160
set (CMAKE_C_LINK_FLAGS "${XCODE_IOS_PLATFORM_VERSION_FLAGS} -fapplication-extension -Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")

‎benchmark/check_tls.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ td::Result<TlsInfo> test_tls(const td::string &url) {
199199
if (random_id ==
200200
"\xcf\x21\xad\x74\xe5\x9a\x61\x11\xbe\x1d\x8c\x02\x1e\x65\xb8\x91\xc2\xa2\x11\x16\x7a\xbb\x8c\x5e\x07"
201201
"\x9e\x09\xe2\xc8\xa8\x33\x9c") {
202-
return td::Status::Error("TLS 1.3 servers returning HelloRetryRequest are not supprted");
202+
return td::Status::Error("TLS 1.3 servers returning HelloRetryRequest are not supported");
203203
}
204204
if (result[43] == '\x00') {
205205
return td::Status::Error("TLS <= 1.2: empty session_id");

‎example/web/tdweb/src/worker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ class TdClient {
884884
}
885885

886886
async close(last_update) {
887-
// close db and cancell all timers
887+
// close db and cancel all timers
888888
this.isClosing = true;
889889
if (this.isStarted) {
890890
log.debug('close worker: start');

‎memprof/memprof.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void *realloc(void *ptr, std::size_t size) {
285285
return new_ptr;
286286
}
287287

288-
void *memalign(std::size_t aligment, std::size_t size) {
288+
void *memalign(std::size_t alignment, std::size_t size) {
289289
my_assert(false && "Memalign is unsupported");
290290
return nullptr;
291291
}

‎td/mtproto/SessionConnection.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace mtproto {
117117
* BadMsgNotification;
118118
*
119119
* error codes:
120-
* 16: msg_id is too low. -- lite resend. It will be automatially packed in a container. I hope.
120+
* 16: msg_id is too low. -- lite resend. It will be automatically packed in a container. I hope.
121121
* 17: msg_id is too high. -- fail connection.
122122
* 18: msg_id % 4 != 0. -- Error and fail connection.
123123
* 19: container msg_id is the same as msg_id of a previously received message. MUST NEVER HAPPENS. Error and fail

‎td/telegram/AuthManager.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class AuthManager final : public NetActor {
129129
ActorShared<> parent_;
130130

131131
// STATE
132-
// from contructor
132+
// from constructor
133133
int32 api_id_;
134134
string api_hash_;
135135

‎td/telegram/BusinessConnectedBot.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool operator==(const BusinessConnectedBot &lhs, const BusinessConnectedBot &rhs
3939
}
4040

4141
StringBuilder &operator<<(StringBuilder &string_builder, const BusinessConnectedBot &connected_bot) {
42-
return string_builder << "coneected bot " << connected_bot.user_id_ << ' ' << connected_bot.recipients_ << ' '
42+
return string_builder << "connected bot " << connected_bot.user_id_ << ' ' << connected_bot.recipients_ << ' '
4343
<< (connected_bot.can_reply_ ? " that can reply" : " read-only");
4444
}
4545

‎td/telegram/GroupCallManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4376,7 +4376,7 @@ InputGroupCallId GroupCallManager::update_group_call(const tl_object_ptr<telegra
43764376
if (!group_call->is_active) {
43774377
// never update ended calls
43784378
} else if (!call.is_active) {
4379-
// always update to an ended call, droping also is_joined, is_speaking and other local flags
4379+
// always update to an ended call, dropping also is_joined, is_speaking and other local flags
43804380
fail_promises(group_call->after_join, Status::Error(400, "Group call ended"));
43814381
*group_call = std::move(call);
43824382
need_update = true;

‎td/telegram/GroupCallParticipant.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ GroupCallParticipant::GroupCallParticipant(const tl_object_ptr<telegram_api::gro
7272
}
7373

7474
bool GroupCallParticipant::is_versioned_update(const tl_object_ptr<telegram_api::groupCallParticipant> &participant) {
75-
// updates about new and left participants must be applyed as versioned, even they don't increase version
75+
// updates about new and left participants must be applied as versioned, even they don't increase version
7676
return participant->just_joined_ || participant->left_ || participant->versioned_;
7777
}
7878

0 commit comments

Comments
 (0)