summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-03-03 20:54:35 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-03-03 20:54:35 -0500
commitb230c913ede87dd5ea0f445cb35f63d714037436 (patch)
treeb628b0273cf582800f7cd1a4b1050b1ea2df58dd
parent8962bc7eef98e45825abacc5dde25298e5a5e37a (diff)
downloadtitler-b230c913ede87dd5ea0f445cb35f63d714037436.tar.xz
titler-b230c913ede87dd5ea0f445cb35f63d714037436.zip
bumped, cleaned up debugs
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs5
3 files changed, 4 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 438953f..b3db42f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,4 +2,4 @@
# It is not intended for manual editing.
[[package]]
name = "titler"
-version = "0.1.0"
+version = "1.0.0"
diff --git a/Cargo.toml b/Cargo.toml
index af5569e..13641d6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "titler"
-version = "0.1.0"
+version = "1.0.0"
authors = ["Adam T. Carpenter <atc@53hor.net>"]
edition = "2018"
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();