diff --git a/pixeldata/src/lib.rs b/pixeldata/src/lib.rs index fff3bd975..94fa7f2d7 100644 --- a/pixeldata/src/lib.rs +++ b/pixeldata/src/lib.rs @@ -1503,7 +1503,8 @@ impl DecodedPixelData<'_> { /// ```no_run /// # use dicom_object::open_file; /// # use dicom_pixeldata::{DecodedPixelData, PixelDecoder}; - /// fn get_pixeldata_only(path: &str) -> Result, Box> { + # type Error = Box; + /// fn get_pixeldata_only(path: &str) -> Result, Error> { /// let obj = open_file(path)?; /// let pixeldata = obj.decode_pixel_data()?; /// // can freely return from function