Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl fmt::Display for ErrorPosition {
}
}

/// The type of error that occured during file parsing

/// The type of error that occurred during file parsing
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum ParseErrorKind {
/// An error happened during file/stream input/output
Expand Down
4 changes: 2 additions & 2 deletions src/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn complement(n: u8) -> u8 {
}

/// Taking in a sequence string, return the canonical form of the sequence
/// (e.g. the lexigraphically lowest of either the original sequence or its
/// (e.g. the lexicographically lowest of either the original sequence or its
/// reverse complement)
pub fn canonical(seq: &[u8]) -> Cow<[u8]> {
let mut buf: Vec<u8> = Vec::with_capacity(seq.len());
Expand Down Expand Up @@ -133,7 +133,7 @@ pub fn canonical(seq: &[u8]) -> Cow<[u8]> {
}
}

/// Find the lexigraphically smallest substring of `seq` of length `length`
/// Find the lexicographically smallest substring of `seq` of length `length`
///
/// There's probably a faster algorithm for this somewhere...
pub fn minimizer(seq: &[u8], length: usize) -> Cow<[u8]> {
Expand Down
Loading