mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix typos in documentation
This commit is contained in:
parent
45ff4f7bfb
commit
63636a5787
2 changed files with 5 additions and 5 deletions
|
@ -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::<TakeCell<dyn AsyncRead + Send + Unpin>>::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<Sender>`, so
|
||||
// this can't happen
|
||||
|
|
|
@ -452,7 +452,7 @@ pub struct InputMediaDocument {
|
|||
/// using multipart/form-data.
|
||||
pub thumb: Option<InputFile>,
|
||||
|
||||
/// Caption of the document to be sent, 0-1024 charactersю
|
||||
/// Caption of the document to be sent, 0-1024 characters.
|
||||
pub caption: Option<String>,
|
||||
|
||||
/// Send [Markdown] or [HTML], if you want Telegram apps to show [bold,
|
||||
|
|
Loading…
Reference in a new issue