Skip to content

Commit

Permalink
chore: fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danieroner committed Mar 12, 2024
1 parent 4861748 commit 2f459aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ tinify-rs = { version = "1.3.0", features = ["async"] }

- Compress from a file
```rust
use tinify::Tinify;
use tinify::TinifyError;
use tinify::sync::Tinify;
use tinify::error::TinifyError;

fn main() -> Result<(), TinifyError> {
let key = "tinify api key";
Expand Down
4 changes: 2 additions & 2 deletions src/sync/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ impl Client {
/// # Examples
///
/// ```
/// use tinify::Tinify;
/// use tinify::TinifyError;
/// use tinify::sync::Tinify;
/// use tinify::error::TinifyError;
/// use std::fs;
///
/// fn main() -> Result<(), TinifyError> {
Expand Down
4 changes: 2 additions & 2 deletions src/sync/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ impl Source {
/// # Examples
///
/// ```
/// use tinify::Tinify;
/// use tinify::sync::Tinify;
/// use tinify::error::TinifyError;
/// use tinify::convert::Color;
/// use tinify::convert::Type;
/// use tinify::TinifyError;
///
/// fn main() -> Result<(), TinifyError> {
/// let _ = Tinify::new()
Expand Down

0 comments on commit 2f459aa

Please sign in to comment.