Skip to content

Commit

Permalink
fix doc code
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Nov 14, 2023
1 parent 992dff3 commit 30149da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/x11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ pub enum Error {
/// let images = get_images().unwrap();
///
/// // we will only use the first screenshot for this example
/// let first_image = images.first().unwrap();
/// let first_screen = images.first().unwrap();
/// let image = first_screen.1;
///
/// first_image.write_to(&mut file, ImageOutputFormat::Png).unwrap();
/// image.write_to(&mut file, ImageOutputFormat::Png).unwrap();
/// }
/// ```
pub fn get_images() -> Result<Vec<(OutputInfo, image::DynamicImage)>, Error> {
Expand Down

0 comments on commit 30149da

Please sign in to comment.