diff --git a/polbin/src/file.rs b/polbin/src/file.rs index d7cdfe5b..761b402d 100644 --- a/polbin/src/file.rs +++ b/polbin/src/file.rs @@ -25,7 +25,7 @@ fn get_prefix(data: &[u8], len: usize) -> (&[u8], &[u8]) { (&data[0..len], &data[len..]) } -pub fn load(data: &[u8]) -> flatgfa::FlatGFA { +pub fn view(data: &[u8]) -> flatgfa::FlatGFA { // Table of contents. let toc = TOC::ref_from_prefix(data).unwrap(); let rest = &data[std::mem::size_of::()..]; diff --git a/polbin/src/main.rs b/polbin/src/main.rs index 8c9c79dc..c4428348 100644 --- a/polbin/src/main.rs +++ b/polbin/src/main.rs @@ -13,7 +13,7 @@ fn main() { // Read either GFA text from stdin or a binary file from the first argument. if let Some(name) = std::env::args().nth(1) { let mmap = map_file(&name); - let gfa = file::load(&mmap); + let gfa = file::view(&mmap); print::print(&gfa); } else { let stdin = std::io::stdin();