File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ impl<F: Read + Seek> Chd<F> {
38
38
///
39
39
/// If the CHD file does not require a parent, and a parent is provided, returns
40
40
/// [`Error::InvalidParameter`](crate::Error::InvalidParameter).
41
-
42
- /// If no parent CHD is provided and the file requires a CHD, the parent will not be
43
- /// validated immediately. However, calls to [`read_hunk_in `](crate::Hunk::read_hunk_in) will
44
- /// fail with [`Error::RequiresParent`](crate::Error::RequiresParent) .
41
+ /// If no parent CHD is provided and the file requires a parent, then the presence of the parent
42
+ /// will not be immediately violated. However, calls to [`read_hunk_in`](crate::Hunk::read_hunk_in)
43
+ /// will fail with [`Error::RequiresParent `](crate::Error::RequiresParent) when a hunk is read that
44
+ /// refers to the parent CHD .
45
45
pub fn open ( mut file : F , parent : Option < Box < Chd < F > > > ) -> Result < Chd < F > > {
46
46
let header = Header :: try_read_header ( & mut file) ?;
47
47
// No point in checking writable because traits are read only.
You can’t perform that action at this time.
0 commit comments