Skip to content

Commit

Permalink
Fix typos and missed DIMACS CNF -> WCNF in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Mar 16, 2021
1 parent 6c51055 commit 5937bf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flussab-cnf/src/cnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Header {
pub var_count: usize,
/// Number of clauses present in the formula.
///
/// Ignored during parsign when `0`.
/// Ignored during parsing when `0`.
pub clause_count: usize,
}

Expand Down
6 changes: 3 additions & 3 deletions flussab-cnf/src/wcnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Header {
pub var_count: usize,
/// Number of clauses present in the formula.
///
/// Ignored during parsign when `0`.
/// Ignored during parsing when `0`.
pub clause_count: usize,

/// The weight used to indicate hard clauses.
Expand All @@ -29,7 +29,7 @@ pub struct Header {
pub top_weight: u64,
}

/// Parser for the DIMACS CNF file format.
/// Parser for the WCNF file format.
pub struct Parser<'a, L> {
reader: LineReader<'a>,
clause_count: usize,
Expand Down Expand Up @@ -149,7 +149,7 @@ where
.optional()
}

/// Returns the DIMACS CNF header if it was present.
/// Returns the WCNF header if it was present.
pub fn header(&self) -> Option<Header> {
self.header
}
Expand Down

0 comments on commit 5937bf9

Please sign in to comment.