diff --git a/src/core.rs b/src/core.rs index 26fe4cf..1b6f4d5 100644 --- a/src/core.rs +++ b/src/core.rs @@ -50,9 +50,9 @@ impl XContext { /// Capture a rectangular part of the screen. /// -/// `ctxt` – connection + screen info\ -/// `x_coord,y_coord` – top-left corner of the rectangle\ -/// `width,height` – size of the rectangle +/// `ctxt` - connection + screen info\ +/// `x_coord,y_coord` - top-left corner of the rectangle\ +/// `width,height` - size of the rectangle /// /// Returns: a `Vec` containing RGBA pixel data. pub fn capture_rect( @@ -104,10 +104,10 @@ pub fn capture_rect( /// Save an RGBA pixel buffer as a PNG file. /// -/// `path` – where to write the file\ -/// `width` – image width in pixels\ -/// `height` – image height in pixels\ -/// `rgba` – pixel data in RGBA format +/// `path` - where to write the file\ +/// `width` - image width in pixels\ +/// `height` - image height in pixels\ +/// `rgba` - pixel data in RGBA format pub fn save_png(path: &str, width: u16, height: u16, rgba: &[u8]) -> anyhow::Result<()> { let file = File::create(path)?;