Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Finck <colin@reactos.org>2022-01-14 09:45:00 +0300
committerColin Finck <colin@reactos.org>2022-01-14 09:45:00 +0300
commit8ec351207510040c65cfb44e3c7041a62b64f16d (patch)
tree4296f059abf608d0f774480f930df23be1cdadcf
parentf1513b4fdbaace1898375824712563021994c8cb (diff)
Fix docs for now.0.1.0
-rw-r--r--src/lib.rs2
-rw-r--r--src/structured_values/file_name.rs6
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