Skip to content

Commit

Permalink
Better document Error::Io
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Sep 29, 2023
1 parent 59ccbc2 commit 9b90184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ use std::sync::Arc;
/// The error type used by this crate.
#[derive(Clone, Debug)]
pub enum Error {
/// IO error.
/// XML document cannot be read from or written to underlying source.
///
/// `Arc<IoError>` instead of `IoError` since `IoError` is not `Clone`.
/// Contains the reference-counted I/O error to make the error type `Clone`able.
Io(Arc<IoError>),
/// Input decoding error. If [`encoding`] feature is disabled, contains `None`,
/// otherwise contains the UTF-8 decoding error
Expand Down

0 comments on commit 9b90184

Please sign in to comment.