From b85b7a6ff2d329708ea8b173815020b00381c2c4 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 2 Mar 2021 17:07:04 -0500 Subject: const exceptions, growable static array --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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: -- cgit v1.2.3