Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Antosser authored and c-git committed Aug 24, 2024
1 parent 8e6da98 commit 025ff05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tool/core/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn create_module_code(
);

// Add problem number and title
code_snippet.push_str(format!("\n\n{SEPARATOR}\n").as_str());
code_snippet.push_str(&format!("//! {}\n", meta_data.get_num_and_title()));

// Add blank line between docstring and code
code_snippet.push('\n');
Expand All @@ -85,9 +85,7 @@ fn create_module_code(
let problem_code = get_code_snippet_for_problem(title_slug)?;
code_snippet.push_str(problem_code.as_ref());

code_snippet.push_str(
"\n\n// << ---------------- Code below here is only for local use ---------------- >>\n",
);
code_snippet.push_str(format!("\n\n{SEPARATOR}\n").as_str());

// Add struct for non design questions
if problem_code.type_.is_non_design() {
Expand Down

0 comments on commit 025ff05

Please sign in to comment.