From 0ec10947d5a04e52147a32ff2ae7f380ca97d507 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 6 Sep 2021 13:58:40 +0300 Subject: [PATCH] Fix some misprints. --- example/java/README.md | 4 ++-- td/telegram/InlineQueriesManager.cpp | 2 +- td/telegram/MessagesManager.cpp | 6 +++--- td/telegram/MessagesManager.h | 4 ++-- td/telegram/NotificationManager.cpp | 2 +- td/telegram/StickersManager.cpp | 4 ++-- td/telegram/WebPagesManager.cpp | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/java/README.md b/example/java/README.md index 28be665ad..49455299f 100644 --- a/example/java/README.md +++ b/example/java/README.md @@ -32,8 +32,8 @@ cd /example/java/bin java '-Djava.library.path=.' org/drinkless/tdlib/example/Example ``` -If you get "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/". +If you receive "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/". -If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared OpenSSL and zlib libraries to `bin/`. +If you receive java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared OpenSSL and zlib libraries to `bin/`. In case you compiled the example as 32-bit version, you may need to give -d32 parameter to Java. diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp index f33a4d0dd..309ca590e 100644 --- a/td/telegram/InlineQueriesManager.cpp +++ b/td/telegram/InlineQueriesManager.cpp @@ -1069,7 +1069,7 @@ tl_object_ptr copy(const td_api::venue &obj) { template <> tl_object_ptr copy(const td_api::formattedText &obj) { - // there is no entities in the game text + // there are no entities in the game text return make_tl_object(obj.text_, vector>()); } diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 962b00b50..c99800bdc 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -8565,7 +8565,7 @@ void MessagesManager::get_dialog_statistics_url(DialogId dialog_id, const string return promise.set_error(Status::Error(3, "Can't access the chat")); } if (dialog_id.get_type() == DialogType::SecretChat) { - return promise.set_error(Status::Error(500, "There is no statistics for secret chats")); + return promise.set_error(Status::Error(500, "There are no statistics for secret chats")); } td_->create_handler(std::move(promise))->send(dialog_id, parameters, is_dark); @@ -11373,7 +11373,7 @@ void MessagesManager::repair_channel_server_unread_count(Dialog *d) { return; } if (!need_unread_counter(d->order)) { - // there is no unread count in left channels + // there are no unread counters in left channels return; } if (!d->need_repair_channel_server_unread_count) { @@ -19479,7 +19479,7 @@ Status MessagesManager::view_messages(DialogId dialog_id, MessageId top_thread_m return Status::Error(400, "Invalid message thread ID specified"); } if (dialog_id.get_type() != DialogType::Channel || is_broadcast_channel(dialog_id)) { - return Status::Error(400, "There is no message threads in the chat"); + return Status::Error(400, "There are no message threads in the chat"); } } diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 581f2fe4b..fa0b1b940 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -1141,10 +1141,10 @@ class MessagesManager final : public Actor { DialogId dialog_id; MessageId last_new_message_id; // identifier of the last known server message received from update, there should be // no server messages after it - MessageId last_message_id; // identifier of the message after which currently there is no any message, i.e. a + MessageId last_message_id; // identifier of the message after which currently there are no messages, i.e. a // message without a gap after it, memory only MessageId first_database_message_id; // identifier of the first message in the database, needed - // until there is no gaps in the database + // until there are no gaps in the database MessageId last_database_message_id; // identifier of the last local or server message, if last_database_message_id // is known and last_message_id is known, then last_database_message_id <= // last_message_id diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 80fe5d71b..8e88e600a 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -1059,7 +1059,7 @@ void NotificationManager::flush_pending_updates(int32 group_id, const char *sour // all edits of notifications from edited_notification_ids // deletions of a notification can be removed, only if the addition of the notification has already been deleted // deletions of all unkept notifications can be moved to the first updateNotificationGroup - // after that at every moment there is no more active notifications than in the last moment, + // after that at every moment there are no more active notifications than in the last moment, // so left deletions after add/edit can be safely removed and following additions can be treated as edits // we still need to keep deletions coming first, because we can't have 2 consequent additions // from all additions of the same notification, we need to preserve the first, because it can be with sound, diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index b30bf4c1b..fb005bcdb 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -4036,8 +4036,8 @@ void StickersManager::on_get_archived_sticker_sets( LOG(ERROR) << "Receive " << total_count << " as total count of archived sticker sets"; } - // if 0 sticker sets are received, then set offset_sticker_set_id was found and there is no stickers after it - // or it wasn't found and there is no archived sets at all + // if 0 sticker sets are received, then set offset_sticker_set_id was found and there are no stickers after it + // or it wasn't found and there are no archived sets at all bool is_last = sticker_sets.empty() && (!offset_sticker_set_id.is_valid() || (!sticker_set_ids.empty() && offset_sticker_set_id == sticker_set_ids.back())); diff --git a/td/telegram/WebPagesManager.cpp b/td/telegram/WebPagesManager.cpp index 8a694b9aa..0bff09047 100644 --- a/td/telegram/WebPagesManager.cpp +++ b/td/telegram/WebPagesManager.cpp @@ -612,7 +612,7 @@ void WebPagesManager::update_web_page_instant_view(WebPageId web_page_id, WebPag auto previous_queries = load_web_page_instant_view_queries.partial.size() + load_web_page_instant_view_queries.full.size(); if (previous_queries == 0) { - // try to load it only if there is no pending load queries + // try to load it only if there are no pending load queries load_web_page_instant_view(web_page_id, false, Auto()); return; }