Skip to content

Commit 2a69b8b

Browse files
committed
Changed the struct name in accoding with UpperCamelCase rule.
1 parent c0862e8 commit 2a69b8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ pub use string::{
3131
lcp_array, lcp_array_arbitrary, suffix_array, suffix_array_arbitrary, suffix_array_manual,
3232
z_algorithm, z_algorithm_arbitrary,
3333
};
34-
pub use twosat::TwoSAT;
34+
pub use twosat::TwoSat;

src/twosat.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
use crate::internal_scc;
22

3-
pub struct TwoSAT {
3+
pub struct TwoSat {
44
n: usize,
55
scc: internal_scc::SccGraph,
66
answer: Vec<bool>,
77
}
8-
impl TwoSAT {
8+
impl TwoSat {
99
pub fn new(n: usize) -> Self {
10-
TwoSAT {
10+
TwoSat {
1111
n,
1212
answer: vec![false; n],
1313
scc: internal_scc::SccGraph::new(2 * n),
@@ -47,7 +47,7 @@ mod tests {
4747
let x = [1, 2, 0i32];
4848
let y = [4, 5, 6];
4949

50-
let mut t = TwoSAT::new(n);
50+
let mut t = TwoSat::new(n);
5151

5252
for i in 0..n {
5353
for j in i + 1..n {
@@ -86,7 +86,7 @@ mod tests {
8686
let x = [1, 2, 0i32];
8787
let y = [4, 5, 6];
8888

89-
let mut t = TwoSAT::new(n);
89+
let mut t = TwoSat::new(n);
9090

9191
for i in 0..n {
9292
for j in i + 1..n {

0 commit comments

Comments
 (0)