mirror of https://github.com/MedzikUser/imgurs
docs: add `;` at the end of the line in the rust example code
This commit is contained in:
parent
c3718579db
commit
8cd1a31b72
14
src/lib.rs
14
src/lib.rs
|
@ -26,29 +26,29 @@
|
||||||
//! ## Image Upload
|
//! ## Image Upload
|
||||||
//! ```
|
//! ```
|
||||||
//! // From URL
|
//! // From URL
|
||||||
//! let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").await?
|
//! let info = client.upload_image("https://cdn.magicuser.cf/lFaGr1x.png").await?;
|
||||||
//!
|
//!
|
||||||
//! // From File
|
//! // From File
|
||||||
//! let info = client.upload_image("path/to/image.png").await?
|
//! let info = client.upload_image("path/to/image.png").await?;
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ## Delete Image
|
//! ## Delete Image
|
||||||
//! ```
|
//! ```
|
||||||
//! client.delete_image("SuPeRsEcReTDeLeTeHaSh").await? // delete hash
|
//! client.delete_image("SuPeRsEcReTDeLeTeHaSh").await?; // delete hash
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ## Get Image Info
|
//! ## Get Image Info
|
||||||
//! ```
|
//! ```
|
||||||
//! let info = client.image_info("lFaGr1x").await? // image id
|
//! let info = client.image_info("lFaGr1x").await?; // image id
|
||||||
//!
|
//!
|
||||||
//! println!("{:?}", info)
|
//! println!("{:?}", info);
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! ## Get Client RateLimit
|
//! ## Get Client RateLimit
|
||||||
//! ```
|
//! ```
|
||||||
//! let info = client.rate_limit.await?
|
//! let info = client.rate_limit.await?;
|
||||||
//!
|
//!
|
||||||
//! println!("{:?}", info)
|
//! println!("{:?}", info);
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
mod api;
|
mod api;
|
||||||
|
|
Loading…
Reference in New Issue