From 8ec351207510040c65cfb44e3c7041a62b64f16d Mon Sep 17 00:00:00 2001 From: Colin Finck Date: Fri, 14 Jan 2022 07:45:00 +0100 Subject: Fix docs for now. --- src/lib.rs | 2 +- src/structured_values/file_name.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d9a5ecc..63aa599 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! The following example dumps the names of all files and folders in the root directory of a given NTFS filesystem. //! The list is directly taken from the NTFS index, hence it's sorted in ascending order with respect to NTFS's understanding of case-insensitive string comparison. //! -//! ```rust,no_run +//! ```ignore //! let mut ntfs = Ntfs::new(&mut fs).unwrap(); //! let root_dir = ntfs.root_directory(&mut fs).unwrap(); //! let index = root_dir.directory_index(&mut fs).unwrap(); diff --git a/src/structured_values/file_name.rs b/src/structured_values/file_name.rs index 09467eb..a3afa17 100644 --- a/src/structured_values/file_name.rs +++ b/src/structured_values/file_name.rs @@ -125,12 +125,12 @@ impl NtfsFileName { /// fetch the corresponding [`NtfsAttribute`], and use [`NtfsAttribute::value`] to fetch the corresponding /// [`NtfsAttributeValue`]. /// For non-resident attribute values, you now need to walk through each Data Run and sum up the return values of - /// [`NtfsDataRun::len`]. - /// For resident attribute values, there is no extra allocated size. + /// [`NtfsDataRun::allocated_size`]. + /// For resident attribute values, the length equals the allocated size. /// /// [`NtfsAttribute`]: crate::NtfsAttribute /// [`NtfsAttribute::value`]: crate::NtfsAttribute::value - /// [`NtfsDataRun::len`]: crate::attribute_value::NtfsDataRun::len + /// [`NtfsDataRun::allocated_size`]: crate::attribute_value::NtfsDataRun::allocated_size /// [`NtfsFile::data`]: crate::NtfsFile::data pub fn allocated_size(&self) -> u64 { self.header.allocated_size -- cgit v1.2.3