diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d3ac731c..9bafd06a5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,7 @@ set(MEMPROF "" CACHE STRING "Use one of \"ON\", \"FAST\" or \"SAFE\" to enable m Works under macOS and Linux when compiled using glibc. \ In FAST mode stack is unwinded only using frame pointers, which may fail. \ In SAFE mode stack is unwinded using backtrace function from execinfo.h, which may be very slow. \ -By default both methods are used to achieve maximum speed and accuracy") +By default both methods are used to achieve the maximum speed and accuracy") if (EMSCRIPTEN) # use prebuilt zlib diff --git a/SplitSource.php b/SplitSource.php index d36dd2acf..3025fc31f 100644 --- a/SplitSource.php +++ b/SplitSource.php @@ -316,7 +316,10 @@ function split_file($file, $chunks, $undo) { } if (in_array('--help', $argv) || in_array('-h', $argv)) { - echo "Usage: php SplitSource.php [OPTION]...\nSplits some source files to reduce maximum RAM needed for compiling a single file.\n -u, --undo Undo all source code changes.\n -h, --help Show this help.\n"; + echo "Usage: php SplitSource.php [OPTION]...\n". + "Splits some source files to reduce a maximum amount of RAM needed for compiling a single file.\n". + " -u, --undo Undo all source code changes.\n". + " -h, --help Show this help.\n"; exit(2); } diff --git a/example/java/org/drinkless/tdlib/Log.java b/example/java/org/drinkless/tdlib/Log.java index 0db0126ac..98189d874 100644 --- a/example/java/org/drinkless/tdlib/Log.java +++ b/example/java/org/drinkless/tdlib/Log.java @@ -41,10 +41,10 @@ public final class Log { public static native boolean setFilePath(String filePath); /** - * Changes maximum size of TDLib log file. + * Changes the maximum size of TDLib log file. * * @deprecated As of TDLib 1.4.0 in favor of {@link TdApi.SetLogStream}, to be removed in the future. - * @param maxFileSize Maximum size of the file to where the internal TDLib log is written + * @param maxFileSize The maximum size of the file to where the internal TDLib log is written * before the file will be auto-rotated. Must be positive. Defaults to 10 MB. */ @Deprecated diff --git a/td/telegram/Client.h b/td/telegram/Client.h index 1e232e83f..ac49f1550 100644 --- a/td/telegram/Client.h +++ b/td/telegram/Client.h @@ -97,7 +97,7 @@ class Client final { /** * Receives incoming updates and request responses from TDLib. May be called from any thread, but shouldn't be * called simultaneously from two different threads. - * \param[in] timeout Maximum number of seconds allowed for this function to wait for new data. + * \param[in] timeout The maximum number of seconds allowed for this function to wait for new data. * \return An incoming update or request response. The object returned in the response may be a nullptr * if the timeout expires. */ diff --git a/td/telegram/Log.h b/td/telegram/Log.h index 87ece9431..14923ab4e 100644 --- a/td/telegram/Log.h +++ b/td/telegram/Log.h @@ -38,11 +38,11 @@ class Log { static bool set_file_path(std::string file_path); /** - * Sets maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated. + * Sets the maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated. * Unused if log is not written to a file. Defaults to 10 MB. * * \deprecated Use synchronous td::td_api::setLogStream request instead. - * \param[in] max_file_size Maximum size of the file to where the internal TDLib log is written before the file + * \param[in] max_file_size The maximum size of the file to where the internal TDLib log is written before the file * will be auto-rotated. Should be positive. */ static void set_max_file_size(std::int64_t max_file_size); diff --git a/td/telegram/LogDotNet.cpp b/td/telegram/LogDotNet.cpp index 975cb5f64..7e2e7db26 100644 --- a/td/telegram/LogDotNet.cpp +++ b/td/telegram/LogDotNet.cpp @@ -46,9 +46,9 @@ public: } /// - /// Changes maximum size of TDLib log file. + /// Changes the maximum size of TDLib log file. /// - /// Maximum size of the file to where the internal TDLib log is written + /// The maximum size of the file to where the internal TDLib log is written /// before the file will be auto-rotated. Must be positive. Defaults to 10 MB. [DEPRECATED_ATTRIBUTE("SetMaxFileSize is deprecated, please use Telegram.Td.Api.SetLogStream request instead.")] static void SetMaxFileSize(std::int64_t maxFileSize) { diff --git a/td/telegram/PollManager.cpp b/td/telegram/PollManager.cpp index ef45444f6..e47bd6471 100644 --- a/td/telegram/PollManager.cpp +++ b/td/telegram/PollManager.cpp @@ -361,7 +361,7 @@ vector PollManager::get_vote_percentage(const vector &voter_counts return result; } - // now we need to choose up to (100 - percent_sum) options with minimum total gap, such that + // now we need to choose up to (100 - percent_sum) options with a minimum total gap, such that // any two options with the same voter_count are chosen or not chosen simultaneously struct Option { int32 pos = -1; diff --git a/td/telegram/td_json_client.h b/td/telegram/td_json_client.h index 8e276c3c5..4a7ccf7a9 100644 --- a/td/telegram/td_json_client.h +++ b/td/telegram/td_json_client.h @@ -72,7 +72,7 @@ TDJSON_EXPORT void td_json_client_send(void *client, const char *request); * Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute * in the same thread, so it can't be used after that. * \param[in] client The client. - * \param[in] timeout Maximum number of seconds allowed for this function to wait for new data. + * \param[in] timeout The maximum number of seconds allowed for this function to wait for new data. * \return JSON-serialized null-terminated incoming update or request response. May be NULL if the timeout expires. */ TDJSON_EXPORT const char *td_json_client_receive(void *client, double timeout); diff --git a/td/telegram/td_log.h b/td/telegram/td_log.h index ecdc61f1f..63e5f45cf 100644 --- a/td/telegram/td_log.h +++ b/td/telegram/td_log.h @@ -33,11 +33,11 @@ extern "C" { TDJSON_DEPRECATED_EXPORT int td_set_log_file_path(const char *file_path); /** - * Sets maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated. + * Sets the maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated. * Unused if log is not written to a file. Defaults to 10 MB. * * \deprecated Use synchronous setLogStream request instead. - * \param[in] max_file_size Maximum size of the file to where the internal TDLib log is written before the file + * \param[in] max_file_size The maximum size of the file to where the internal TDLib log is written before the file * will be auto-rotated. Should be positive. */ TDJSON_DEPRECATED_EXPORT void td_set_log_max_file_size(long long max_file_size);