From 75f88ba3b664182c21c03ddfb07eb78c4dc80ec4 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 14 Aug 2022 23:38:49 -0400 Subject: [PATCH] Clarify that IndexFile::from_existing is not reading index2 files --- src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.rs b/src/index.rs index 1cbfc35..7aa8555 100755 --- a/src/index.rs +++ b/src/index.rs @@ -72,7 +72,7 @@ pub struct IndexFile { } impl IndexFile { - /// Creates a new reference to an existing index file, this reads both an index and index2 file. + /// Creates a new reference to an existing index file. pub fn from_existing(path: &str) -> Option { let mut index_file = std::fs::File::open(path).ok()?;