aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/gen_feature_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen/gen_feature_docs.rs b/xtask/src/codegen/gen_feature_docs.rs
index 170a3e889..a0c2ffef9 100644
--- a/xtask/src/codegen/gen_feature_docs.rs
+++ b/xtask/src/codegen/gen_feature_docs.rs
@@ -50,12 +50,12 @@ impl Feature {
50 50
51fn is_valid_feature_name(feature: &str) -> bool { 51fn is_valid_feature_name(feature: &str) -> bool {
52 'word: for word in feature.split_whitespace() { 52 'word: for word in feature.split_whitespace() {
53 for &short in ["to"].iter() { 53 for &short in ["to", "and"].iter() {
54 if word == short { 54 if word == short {
55 continue 'word; 55 continue 'word;
56 } 56 }
57 } 57 }
58 for &short in ["To"].iter() { 58 for &short in ["To", "And"].iter() {
59 if word == short { 59 if word == short {
60 return false; 60 return false;
61 } 61 }