From b230c913ede87dd5ea0f445cb35f63d714037436 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 3 Mar 2021 20:54:35 -0500 Subject: bumped, cleaned up debugs --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 913bcbb..b060ed1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ const EXCEPTIONS: &[&str] = &[ /// Here are the rules: /// -/// - Every line is its own title. No multi-line titles. +/// - Every line is its own title. /// - All words are capitalized, except... /// - Words are not capitalized if they are EXCEPTIONS, unless... /// - Words are either the first or the last word. @@ -22,7 +22,6 @@ fn main() { let mut ignorables = Vec::new(); while let Some(arg) = args.next() { - dbg!(&arg); match arg.as_str() { "--ignore" | "-i" => { ignorables = args.collect(); @@ -43,7 +42,7 @@ fn main() { } } -/// Capitalizes a single line (title) based on placement and exceptions. +/// Corrects a single line (title) based on placement and exceptions. fn correct_line(line: &str, ignorables: &[String]) -> String { let mut line = line.split_whitespace().peekable(); let mut result = Vec::new(); -- cgit v1.2.3