File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -621,6 +621,12 @@ pub fn lint_group() -> LintGroup {
621
621
"Use singular `in detail` for referring to a detailed description." ,
622
622
"Correct unidiomatic plural `in details` to `in detail`."
623
623
) ,
624
+ "InMoreDetail" => (
625
+ [ "in more details" ] ,
626
+ [ "in more detail" ] ,
627
+ "Use singular `in more detail` for referring to a detailed description." ,
628
+ "Correct unidiomatic plural `in more details` to `in more detail`."
629
+ ) ,
624
630
} ) ;
625
631
626
632
group. set_all_rules_to ( Some ( true ) ) ;
@@ -863,6 +869,11 @@ mod tests {
863
869
assert_suggestion_result ( "in details" , lint_group ( ) , "in detail" ) ;
864
870
}
865
871
872
+ #[ test]
873
+ fn in_more_detail_atomic ( ) {
874
+ assert_suggestion_result ( "in more details" , lint_group ( ) , "in more detail" ) ;
875
+ }
876
+
866
877
#[ test]
867
878
fn in_detail_real_world ( ) {
868
879
assert_suggestion_result (
@@ -871,4 +882,13 @@ mod tests {
871
882
"c++ - who can tell me \" *this pointer\" in detail?" ,
872
883
) ;
873
884
}
885
+
886
+ #[ test]
887
+ fn in_more_detail_real_world ( ) {
888
+ assert_suggestion_result (
889
+ "Document the interface in more details · Issue #3 · owlbarn ..." ,
890
+ lint_group ( ) ,
891
+ "Document the interface in more detail · Issue #3 · owlbarn ..." ,
892
+ ) ;
893
+ }
874
894
}
You can’t perform that action at this time.
0 commit comments