Skip to content

Commit aea46d7

Browse files
rojvvlevlam
authored andcommitted
Fix typos.
1 parent 6b82cc8 commit aea46d7

11 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ Changes in 1.7.0 (28 Nov 2020):
463463
call library versions.
464464
* Added support for multiple pinned messages and the ability to pin messages in private chats:
465465
- Added the ability to pin messages in all private chats.
466-
- Added the ability to pin mutiple messages in all chats.
466+
- Added the ability to pin multiple messages in all chats.
467467
- Added the field `is_pinned` to the class `message`.
468468
- Added the update `updateMessageIsPinned`.
469469
- Added the parameter `only_for_self` to the method `pinChatMessage`, allowing to pin messages in private chats for

‎benchmark/bench_log.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ std::string create_tmp_file() {
2626
char file_name[] = "largefileXXXXXX";
2727
int fd = mkstemp(file_name);
2828
if (fd == -1) {
29-
perror("Can't cretate temporary file");
29+
perror("Can't create temporary file");
3030
}
3131
CHECK(fd != -1);
3232

‎example/uwp/app/Properties/Default.rd.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
1313
1414
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
15-
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
15+
<Namespace Name="DataClasses.ViewModels" Serialize="All" />
1616
-->
1717

1818
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">

‎td/generate/scheme/td_api.tl‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ formattedText text:string entities:vector<textEntity> = FormattedText;
119119
//@description Represents a change of a text @offset Offset of the entity, in UTF-16 code units @length Length of the entity, in UTF-16 code units @type Type of the entity
120120
diffEntity offset:int32 length:int32 type:DiffEntityType = DiffEntity;
121121

122-
//@description A text with some changes highlighted @text The text @entities Entities describing changes in the text. Entities doesn't mutually intersect with each other
122+
//@description A text with some changes highlighted @text The text @entities Entities describing changes in the text. Entities don't mutually intersect with each other
123123
diffText text:string entities:vector<diffEntity> = DiffText;
124124

125125
//@description A text fixed using fixTextWithAi @text The resulting text @diff_text Changes made to the original text
@@ -182,7 +182,7 @@ authorizationStateWaitCode code_info:authenticationCodeInfo = AuthorizationState
182182
//@description The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link @link A tg:// URL for the QR code. The link will be updated frequently
183183
authorizationStateWaitOtherDeviceConfirmation link:string = AuthorizationState;
184184

185-
//@description The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data @terms_of_service Telegram terms of service
185+
//@description The user is unregistered and needs to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data @terms_of_service Telegram terms of service
186186
authorizationStateWaitRegistration terms_of_service:termsOfService = AuthorizationState;
187187

188188
//@description The user has been authorized, but needs to enter a 2-step verification password to start using the application.
@@ -1355,7 +1355,7 @@ upgradedGiftOriginCraft = UpgradedGiftOrigin;
13551355

13561356
//@class UpgradedGiftAttributeRarity @description Describes rarity of an upgraded gift attribute
13571357

1358-
//@description The rarity is represented as the numeric frequence of the model
1358+
//@description The rarity is represented as the numeric frequency of the model
13591359
//@per_mille The number of upgraded gifts that receive this attribute for each 1000 gifts upgraded; if 0, then it can be shown as "<0.1%"
13601360
upgradedGiftAttributeRarityPerMille per_mille:int32 = UpgradedGiftAttributeRarity;
13611361

@@ -2994,7 +2994,7 @@ sponsoredChat unique_id:int53 chat_id:int53 sponsor_info:string additional_info:
29942994
//@description Contains a list of sponsored chats @chats List of sponsored chats
29952995
sponsoredChats chats:vector<sponsoredChat> = SponsoredChats;
29962996

2997-
//@description Describes an advertisent to be shown while a video from a message is watched
2997+
//@description Describes an advertisement to be shown while a video from a message is watched
29982998
//@unique_id Unique identifier of this result
29992999
//@text Text of the advertisement
30003000
//@min_display_duration The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds
@@ -5669,7 +5669,7 @@ inputMessageForwarded from_chat_id:int53 message_id:int53 in_game_share:Bool rep
56695669
//@can_get_message_thread True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
56705670
//@can_get_read_date True, if read date of the message can be received through getMessageReadDate
56715671
//@can_get_statistics True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
5672-
//@can_get_video_advertisements True, if advertisements for video of the message can be received though getVideoMessageAdvertisements
5672+
//@can_get_video_advertisements True, if advertisements for video of the message can be received through getVideoMessageAdvertisements
56735673
//@can_get_viewers True, if chat members already viewed the message can be received through getMessageViewers
56745674
//@can_mark_tasks_as_done True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription
56755675
//@can_recognize_speech True, if speech can be recognized for the message through recognizeSpeech
@@ -14492,7 +14492,7 @@ getUpgradedGiftValueInfo name:string = UpgradedGiftValueInfo;
1449214492
//@password The 2-step verification password of the current user
1449314493
getUpgradedGiftWithdrawalUrl received_gift_id:string password:string = HttpUrl;
1449414494

14495-
//@description Returns promotional anumation for upgraded gifts
14495+
//@description Returns promotional animation for upgraded gifts
1449614496
getUpgradedGiftsPromotionalAnimation = Animation;
1449714497

1449814498
//@description Changes resale price of a unique gift owned by the current user

‎td/telegram/GroupCallManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3601,7 +3601,7 @@ void GroupCallManager::remove_group_call_spent_stars(InputGroupCallId input_grou
36013601
send_update_live_story_top_donors(group_call->group_call_id, group_call_participants);
36023602
}
36033603
}
3604-
// don't neet to undo updateNewGroupCallPaidReaction
3604+
// don't need to undo updateNewGroupCallPaidReaction
36053605
}
36063606

36073607
int32 GroupCallManager::add_group_call_message(InputGroupCallId input_group_call_id, GroupCall *group_call,

‎td/telegram/MessageReactor.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void MessageReactor::fix_message_reactors(vector<MessageReactor> &reactors, bool
117117
}
118118
if (reactor.is_me()) {
119119
if (was_me) {
120-
LOG(ERROR) << "Receive self mutiple times";
120+
LOG(ERROR) << "Receive self multiple times";
121121
return true;
122122
}
123123
was_me = true;

‎td/telegram/PollManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ void PollManager::on_get_poll_vote(PollId poll_id, DialogId dialog_id, vector<Bu
22922292
}
22932293
if (options.size() != positions.size()) {
22942294
LOG(ERROR) << "Receive updateMessagePollVote from " << dialog_id << " in " << poll_id
2295-
<< " with mistmatch option size";
2295+
<< " with mismatch option size";
22962296
return;
22972297
}
22982298
CHECK(td_->auth_manager_->is_bot());

‎td/telegram/QueryCombiner.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void QueryCombiner::add_query(int64 query_id, Promise<Promise<Unit>> &&send_quer
2424
if (promise) {
2525
query.promises.push_back(std::move(promise));
2626
} else if (min_delay_ > 0 && !query.is_sent) {
27-
// if there is no promise, then noone waits for response
27+
// if there is no promise, then no one waits for response
2828
// we can delay query to not exceed any flood limit
2929
if (query.send_query) {
3030
// the query is already delayed

‎tde2e/td/e2e/Call.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ std::string lambda_serialize(F &&f) {
6262
return td::serialize(LambdaStorer<F>{std::forward<F>(f)});
6363
}
6464

65-
void CallVerificationChain::on_new_main_block(const Blockchain &blockhain) {
65+
void CallVerificationChain::on_new_main_block(const Blockchain &blockchain) {
6666
state_ = Commit;
67-
CHECK(blockhain.get_height() > height_);
68-
height_ = td::narrow_cast<td::int32>(blockhain.get_height());
69-
last_block_hash_ = blockhain.last_block_hash_;
67+
CHECK(blockchain.get_height() > height_);
68+
height_ = td::narrow_cast<td::int32>(blockchain.get_height());
69+
last_block_hash_ = blockchain.last_block_hash_;
7070
verification_state_ = {};
7171
verification_state_.height = height_;
7272

7373
verification_words_ =
7474
CallVerificationWords{height_, Mnemonic::generate_verification_words(last_block_hash_.as_slice())};
75-
auto &group_state = *blockhain.state_.group_state_;
75+
auto &group_state = *blockchain.state_.group_state_;
7676
committed_ = {};
7777
revealed_ = {};
7878

‎tde2e/td/e2e/Call.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct CallVerificationChain {
3535
Reveal,
3636
};
3737
State get_state() const;
38-
void on_new_main_block(const Blockchain &blockhain);
38+
void on_new_main_block(const Blockchain &blockchain);
3939
td::Status try_apply_block(td::Slice message);
4040
std::string to_short_string(e2e::object_ptr<e2e::e2e_chain_GroupBroadcast> &broadcast);
4141

@@ -139,7 +139,7 @@ class CallEncryption {
139139
class CallVerification {
140140
public:
141141
static CallVerification create(td::int64 user_id, PrivateKey private_key, const Blockchain &blockchain);
142-
void on_new_main_block(const Blockchain &blockhain);
142+
void on_new_main_block(const Blockchain &blockchain);
143143
CallVerificationState get_verification_state() const;
144144
std::vector<std::string> pull_outbound_messages();
145145
CallVerificationWords get_verification_words() const;

0 commit comments

Comments
 (0)