]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos in config descriptions
authorJonas Schievink <jonas@schievink.net>
Thu, 8 Oct 2015 14:13:10 +0000 (16:13 +0200)
committerJonas Schievink <jonas@schievink.net>
Thu, 8 Oct 2015 14:13:10 +0000 (16:13 +0200)
src/config.rs

index b237ce4ddfc4597cfde383ede73a3c4707332752..6a7e686dc11ad65bf635241f04492efaae01ba05 100644 (file)
@@ -261,14 +261,14 @@ fn default() -> Config {
     ideal_width: usize, 80, "Ideal width of each line";
     tab_spaces: usize, 4, "Number of spaces per tab";
     fn_call_width: usize, 60,
-        "Maximum width of the args of a function call before faling back to vertical formatting";
+        "Maximum width of the args of a function call before falling back to vertical formatting";
     struct_lit_width: usize, 16,
-        "Maximum width in the body of a struct lit before faling back to vertical formatting";
+        "Maximum width in the body of a struct lit before falling back to vertical formatting";
     newline_style: NewlineStyle, NewlineStyle::Unix, "Unix or Windows line endings";
     fn_brace_style: BraceStyle, BraceStyle::SameLineWhere, "Brace style for functions";
     fn_return_indent: ReturnIndent, ReturnIndent::WithArgs,
         "Location of return type in function declaration";
-    fn_args_paren_newline: bool, true, "If function argument parenthases goes on a newline";
+    fn_args_paren_newline: bool, true, "If function argument parenthesis goes on a newline";
     fn_args_density: Density, Density::Tall, "Argument density in functions";
     fn_args_layout: StructLitStyle, StructLitStyle::Visual, "Layout of function arguments";
     fn_arg_indent: BlockIndentStyle, BlockIndentStyle::Visual, "Indent on function arguments";
@@ -287,12 +287,12 @@ fn default() -> Config {
         "If there is a trailing comma on literal structs";
     struct_lit_style: StructLitStyle, StructLitStyle::Block, "Style of struct definition";
     struct_lit_multiline_style: MultilineStyle, MultilineStyle::PreferSingle,
-        "Multilline style on literal structs";
+        "Multiline style on literal structs";
     enum_trailing_comma: bool, true, "Put a trailing comma on enum declarations";
     report_todo: ReportTactic, ReportTactic::Always,
-        "Report all occurences of TODO in source file comments";
+        "Report all occurrences of TODO in source file comments";
     report_fixme: ReportTactic, ReportTactic::Never,
-        "Report all occurences of FIXME in source file comments";
+        "Report all occurrences of FIXME in source file comments";
     // Alphabetically, case sensitive.
     reorder_imports: bool, false, "Reorder import statements alphabetically";
     single_line_if_else: bool, false, "Put else on same line as closing brace for if statements";