1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-21 20:27:46 +00:00

Clarify that IndexFile::from_existing is not reading index2 files

This commit is contained in:
Joshua Goins 2022-08-14 23:38:49 -04:00
parent 209b475065
commit 75f88ba3b6

View file

@ -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<IndexFile> {
let mut index_file = std::fs::File::open(path).ok()?;