Skip to content

Commit

Permalink
Change a function name
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Mar 11, 2024
1 parent 73d68be commit 896b7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polbin/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<TOC>()..];
Expand Down
2 changes: 1 addition & 1 deletion polbin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 896b7ed

Please sign in to comment.