Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-shobon committed Aug 16, 2021
1 parent d081335 commit ced4f99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod fetch;
mod puzzle;

use clap::{App, Arg};
use puzzle::Pazzle;
use puzzle::Puzzle;
use std::fs;
use std::io::BufWriter;

Expand Down Expand Up @@ -93,7 +93,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let source_name = matches.value_of("source_name").unwrap();
let problem_name = matches.value_of("problem_name").unwrap();

let mut puzzle = Pazzle::generate(
let mut puzzle = Puzzle::generate(
division_size,
division,
select_limit,
Expand Down
6 changes: 3 additions & 3 deletions src/puzzle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MIN_COST_RATE: u32 = 1;
const MAX_COST_RATE: u32 = 500;

#[derive(Debug)]
pub struct Pazzle {
pub struct Puzzle {
division: (u32, u32),
division_size: u32,
select_limit: u32,
Expand All @@ -25,15 +25,15 @@ pub struct Pazzle {
image: RgbImage,
}

impl Pazzle {
impl Puzzle {
fn new(
division_size: u32,
select_limit: u32,
select_rate: u32,
swap_rate: u32,
image: RgbImage,
) -> Self {
Pazzle {
Puzzle {
division: (
(image.width() / division_size),
(image.height() / division_size),
Expand Down

0 comments on commit ced4f99

Please sign in to comment.