From 63636a578735c43b7b8594af16cc2f4f56389a88 Mon Sep 17 00:00:00 2001 From: mikhailantoshkin Date: Sun, 8 Oct 2023 11:05:17 +0900 Subject: [PATCH 1/2] Fix typos in documentation --- crates/teloxide-core/src/types/input_file.rs | 8 ++++---- crates/teloxide-core/src/types/input_media.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/teloxide-core/src/types/input_file.rs b/crates/teloxide-core/src/types/input_file.rs index 00948f8b..77bcf4bc 100644 --- a/crates/teloxide-core/src/types/input_file.rs +++ b/crates/teloxide-core/src/types/input_file.rs @@ -114,7 +114,7 @@ impl InputFile { } /// Shorthand for `Self { file_name: None, inner, id: default() }` - /// (private because `InnerFile` iы private implementation detail) + /// (private because `InnerFile` is private implementation detail) fn new(inner: InnerFile) -> Self { Self { file_name: None, inner, id: OnceCell::new() } } @@ -258,7 +258,7 @@ impl Read { let res = ArcBox::>::try_from(self.inner); match res { // Fast/easy path: this is the only file copy, so we can just forward the underlying - // `dyn AsynсRead` via some adaptors to reqwest. + // `dyn AsyncRead` via some adaptors to reqwest. Ok(arc_box) => { let fr = FramedRead::new(ExclusiveArcAsyncRead(arc_box), BytesDecoder); @@ -270,7 +270,7 @@ impl Read { } } - // Slow path: either wait until someone will read the whole `dyn AsynсRead` into + // Slow path: either wait until someone will read the whole `dyn AsyncRead` into // a buffer, or be the one who reads let body = self.into_shared_body().await; @@ -321,7 +321,7 @@ impl Read { let _ = self.notify.send(()); } - // Wait until `dyn AsynсRead` is read into a buffer, if it hasn't been read yet + // Wait until `dyn AsyncRead` is read into a buffer, if it hasn't been read yet None if self.buf.get().is_none() => { // Error indicates that the sender was dropped, by we hold `Arc`, so // this can't happen diff --git a/crates/teloxide-core/src/types/input_media.rs b/crates/teloxide-core/src/types/input_media.rs index 9b9effcc..aaefba5a 100644 --- a/crates/teloxide-core/src/types/input_media.rs +++ b/crates/teloxide-core/src/types/input_media.rs @@ -452,7 +452,7 @@ pub struct InputMediaDocument { /// using multipart/form-data. pub thumb: Option, - /// Caption of the document to be sent, 0-1024 charactersю + /// Caption of the document to be sent, 0-1024 characters. pub caption: Option, /// Send [Markdown] or [HTML], if you want Telegram apps to show [bold, From a6e53cf3b8a49904febc2f3083e51f2a90e8fd66 Mon Sep 17 00:00:00 2001 From: mikhailantoshkin Date: Sun, 8 Oct 2023 11:12:45 +0900 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dceb57f..4b395c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use `UserId` instead of `i64` for `user_id` in `html::user_mention` and `markdown::user_mention` ([PR 896](https://github.com/teloxide/teloxide/pull/896)) - Greatly improved the speed of graceful shutdown (`^C`) ([PR 938](https://github.com/teloxide/teloxide/pull/938)) +- Fix typos in docstrings ([PR 953](https://github.com/teloxide/teloxide/pull/953)) ### Changed