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-13 21:27:34 +0300
committerColin Finck <colin@reactos.org>2022-01-13 21:27:34 +0300
commit252a6467abbc57d67dbad4143d06f6d54660e769 (patch)
tree8e3f2a77465b4311f32b3b62b549b2c9bc9df5ba
parentad187486b7d8641248550c056bf972d847edb348 (diff)
Fix some typos.
-rw-r--r--README.md4
-rw-r--r--src/index.rs2
-rw-r--r--src/index_entry.rs2
-rw-r--r--src/index_record.rs2
-rw-r--r--src/indexes/mod.rs2
-rw-r--r--src/time.rs2
6 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 2a85568..d1c59e4 100644
--- a/README.md
+++ b/README.md
@@ -14,14 +14,14 @@ A low-level NTFS filesystem library implemented in Rust.
This crate is geared towards the NTFS 3.x versions used in Windows 2000 up to the current Windows 11.
However, the basics are expected to be compatible to even earlier versions.
-The crate is `no_std`-compatible and therefore usable from firmware level code up to user-mode applications.
+The crate is `no_std`-compatible and therefore usable from firmware-level code up to user-mode applications.
## ntfs-shell
![ntfs-shell demo](img/ntfs-shell.gif)
The `ntfs-shell` example comes with this crate to demonstrate all library features.
Use it to explore the internal structures of an NTFS filesystem at any detail level, even of your running Windows partition.
-No artificial security restrictions will block you from accessing a file or folder, extract their data, as well as Alternate Data Streams.
+No artificial security restrictions will block you from accessing files and folders, extracting their data or Alternate Data Streams.
The filesystem is opened read-only, so you can safely browse even a mounted filesystem without worrying about data corruption.
That is also helpful to get an idea of the Windows NTFS driver, e.g. to find out when its lazy writer actually updates the data on disk.
diff --git a/src/index.rs b/src/index.rs
index 1b6b1b5..5799828 100644
--- a/src/index.rs
+++ b/src/index.rs
@@ -123,7 +123,7 @@ where
{
// NTFS B-tree indexes are composed out of nodes, with multiple entries per node.
// Each entry may have a reference to a subnode.
- // If that is the case, the subnode comes before the parent node lexicographically.
+ // If that is the case, the subnode entries comes before the parent entry lexicographically.
//
// An example for an unbalanced, but otherwise valid and sorted tree:
//
diff --git a/src/index_entry.rs b/src/index_entry.rs
index 4ce534a..4fbcd1f 100644
--- a/src/index_entry.rs
+++ b/src/index_entry.rs
@@ -78,7 +78,7 @@ where
/// A single entry of an NTFS index.
///
-/// NTFS uses B-tree indexes to quickly look up directories, Object IDs, Reparse Points, Security Descriptors, etc.
+/// NTFS uses B-tree indexes to quickly look up files, Object IDs, Reparse Points, Security Descriptors, etc.
/// They are described via [`NtfsIndexRoot`] and [`NtfsIndexAllocation`] attributes, which can be comfortably
/// accessed via [`NtfsIndex`].
///
diff --git a/src/index_record.rs b/src/index_record.rs
index 6d7b28d..4f7bc42 100644
--- a/src/index_record.rs
+++ b/src/index_record.rs
@@ -39,7 +39,7 @@ pub(crate) struct IndexNodeHeader {
///
/// These records are denoted via an `INDX` signature on the filesystem.
///
-/// NTFS uses B-tree indexes to quickly look up directories, Object IDs, Reparse Points, Security Descriptors, etc.
+/// NTFS uses B-tree indexes to quickly look up files, Object IDs, Reparse Points, Security Descriptors, etc.
/// An Index Record is further comprised of Index Entries, which contain the actual key/data (see [`NtfsIndexEntry`],
/// iterated via [`NtfsIndexNodeEntries`]).
///
diff --git a/src/indexes/mod.rs b/src/indexes/mod.rs
index 6baf344..a912bf7 100644
--- a/src/indexes/mod.rs
+++ b/src/indexes/mod.rs
@@ -6,7 +6,7 @@
//! Thanks to Rust's typesystem, the traits make using the various types of NTFS indexes (and their distinct key
//! and data types) possible in a typesafe way.
//!
-//! NTFS uses B-tree indexes to quickly look up directories, Object IDs, Reparse Points, Security Descriptors, etc.
+//! NTFS uses B-tree indexes to quickly look up files, Object IDs, Reparse Points, Security Descriptors, etc.
//! They are described via [`NtfsIndexRoot`] and [`NtfsIndexAllocation`] attributes, which can be comfortably
//! accessed via [`NtfsIndex`].
//!
diff --git a/src/time.rs b/src/time.rs
index 4784163..b358ab4 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -16,7 +16,7 @@ use {
#[cfg(feature = "std")]
use std::time::{SystemTime, SystemTimeError};
-/// How many days we have between 0001-01-01 and 1601-01-01.
+/// Number of days between 0001-01-01 and 1601-01-01.
#[cfg(feature = "chrono")]
const DAYS_FROM_0001_TO_1601: i32 = 584389;