Skip to content

Commit

Permalink
Update pixeldata/src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Enet4 committed Oct 5, 2023
1 parent c6a5467 commit 4bbdd33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pixeldata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<DecodedPixelData<'static>, Box<dyn std::error::Error>> {
# type Error = Box<dyn std::error::Error>;
/// fn get_pixeldata_only(path: &str) -> Result<DecodedPixelData<'static>, Error> {
/// let obj = open_file(path)?;
/// let pixeldata = obj.decode_pixel_data()?;
/// // can freely return from function
Expand Down

0 comments on commit 4bbdd33

Please sign in to comment.