summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-03-02 17:07:04 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-03-02 17:07:04 -0500
commitb85b7a6ff2d329708ea8b173815020b00381c2c4 (patch)
tree220056d06fad897d5d893fbe97af867df1c13d97
parent41439f0ec165cf24989f5b1f2bd30a6669ee4d0f (diff)
downloadtitler-b85b7a6ff2d329708ea8b173815020b00381c2c4.tar.xz
titler-b85b7a6ff2d329708ea8b173815020b00381c2c4.zip
const exceptions, growable static array
-rw-r--r--src/main.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index bacaef9..6abf97c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,11 +3,11 @@ use std::io::BufRead;
use std::io::BufReader;
/// Words that will not be capitalized unless they are at the start or end of a title.
-static EXCEPTIONS: [&str; 36] = [
- "above", "across", "against", "at", "between", "by", "along", "among", "down", "in", "around",
- "of", "off", "on", "to", "with", "before", "behind", "below", "beneath", "down", "from",
- "near", "toward", "upon", "within", "a", "an", "the", "and", "but", "for", "or", "nor", "yet",
- "so",
+const EXCEPTIONS: &[&str] = &[
+ "vs", "above", "across", "against", "at", "between", "by", "along", "among", "down", "in",
+ "around", "of", "off", "on", "to", "with", "before", "behind", "below", "beneath", "down",
+ "from", "near", "toward", "upon", "within", "a", "an", "the", "and", "but", "for", "or", "nor",
+ "yet", "so",
];
/// Here are the rules: