Skip to content

Commit 288a3b1

Browse files
committed
replace 'positive integer' with 'nonnegative integer'
1 parent ef94a72 commit 288a3b1

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Configurations.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Below you find a detailed visual guide on all the supported configuration option
2222
Maximum width of an array literal before falling back to vertical formatting.
2323

2424
- **Default value**: `60`
25-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
25+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
2626
- **Stable**: Yes
2727

2828
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `array_width` will take precedence.
@@ -34,7 +34,7 @@ See also [`max_width`](#max_width) and [`use_small_heuristics`](#use_small_heuri
3434
Maximum width of the args of a function-like attributes before falling back to vertical formatting.
3535

3636
- **Default value**: `70`
37-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
37+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
3838
- **Stable**: Yes
3939

4040
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `attr_fn_like_width` will take precedence.
@@ -300,7 +300,7 @@ where
300300
Maximum width of a chain to fit on one line.
301301

302302
- **Default value**: `60`
303-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
303+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
304304
- **Stable**: Yes
305305

306306
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `chain_width` will take precedence.
@@ -428,7 +428,7 @@ fn example() {
428428
Maximum length of comments. No effect unless `wrap_comments = true`.
429429

430430
- **Default value**: `80`
431-
- **Possible values**: any positive integer
431+
- **Possible values**: any nonnegative integer
432432
- **Stable**: No (tracking issue: [#3349](https://github.com/rust-lang/rustfmt/issues/3349))
433433

434434
**Note:** A value of `0` results in [`wrap_comments`](#wrap_comments) being applied regardless of a line's width.
@@ -586,7 +586,7 @@ Note that this is not how much whitespace is inserted, but instead the longest v
586586
doesn't get ignored when aligning.
587587

588588
- **Default value** : 0
589-
- **Possible values**: any positive integer
589+
- **Possible values**: any nonnegative integer
590590
- **Stable**: No (tracking issue: [#3372](https://github.com/rust-lang/rustfmt/issues/3372))
591591

592592
#### `0` (default):
@@ -764,7 +764,7 @@ See also [`fn_params_layout`](#fn_params_layout)
764764
Maximum width of the args of a function call before falling back to vertical formatting.
765765

766766
- **Default value**: `60`
767-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
767+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
768768
- **Stable**: Yes
769769

770770
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `fn_call_width` will take precedence.
@@ -1048,7 +1048,7 @@ fn add_one(x: i32) -> i32 {
10481048
Max width for code snippets included in doc comments. Only used if [`format_code_in_doc_comments`](#format_code_in_doc_comments) is true.
10491049

10501050
- **Default value**: `100`
1051-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
1051+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
10521052
- **Stable**: No (tracking issue: [#5359](https://github.com/rust-lang/rustfmt/issues/5359))
10531053

10541054
## `format_generated_files`
@@ -1067,7 +1067,7 @@ This option is currently ignored for stdin (`@generated` in stdin is ignored.)
10671067
Number of lines to check for a `@generated` pragma header, starting from the top of the file. Setting this value to `0` will treat all files as non-generated. When`format_generated_files` is `true`, this option has no effect.
10681068

10691069
- **Default value**: `5`
1070-
- **Possible values**: any positive integer
1070+
- **Possible values**: any nonnegative integer
10711071
- **Stable**: No (tracking issue: [#5080](https://github.com/rust-lang/rustfmt/issues/5080))
10721072

10731073
See also [format_generated_files](#format_generated_files) link here.
@@ -1715,7 +1715,7 @@ fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
17151715
Write an item and its attribute on the same line if their combined width is below a threshold
17161716

17171717
- **Default value**: 0
1718-
- **Possible values**: any positive integer
1718+
- **Possible values**: any nonnegative integer
17191719
- **Stable**: No (tracking issue: [#3343](https://github.com/rust-lang/rustfmt/issues/3343))
17201720

17211721
### Example
@@ -1939,7 +1939,7 @@ See also: [`trailing_comma`](#trailing_comma), [`match_arm_blocks`](#match_arm_b
19391939
Maximum width of each line
19401940

19411941
- **Default value**: `100`
1942-
- **Possible values**: any positive integer
1942+
- **Possible values**: any nonnegative integer
19431943
- **Stable**: Yes
19441944

19451945
See also [`error_on_line_overflow`](#error_on_line_overflow).
@@ -2515,7 +2515,7 @@ The layout of an array is dependent on the length of each of its elements.
25152515
If the length of every element in an array is below this threshold (all elements are "short") then the array can be formatted in the mixed/compressed style, but if any one element has a length that exceeds this threshold then the array elements will have to be formatted vertically.
25162516

25172517
- **Default value**: `10`
2518-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2518+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
25192519
- **Stable**: Yes
25202520

25212521
#### `10` (default):
@@ -2554,7 +2554,7 @@ Don't reformat out of line modules
25542554
Maximum line length for single line if-else expressions. A value of `0` (zero) results in if-else expressions always being broken into multiple lines. Note this occurs when `use_small_heuristics` is set to `Off`.
25552555

25562556
- **Default value**: `50`
2557-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2557+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
25582558
- **Stable**: Yes
25592559

25602560
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `single_line_if_else_max_width` will take precedence.
@@ -2571,7 +2571,7 @@ Note this occurs when `use_small_heuristics` is set to `Off`.
25712571
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `single_line_let_else_max_width` will take precedence.
25722572

25732573
- **Default value**: `50`
2574-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2574+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
25752575
- **Stable**: Yes
25762576

25772577
#### `50` (default):
@@ -2815,7 +2815,7 @@ See also: [`indent_style`](#indent_style).
28152815
Maximum width in the body of a struct literal before falling back to vertical formatting. A value of `0` (zero) results in struct literals always being broken into multiple lines. Note this occurs when `use_small_heuristics` is set to `Off`.
28162816

28172817
- **Default value**: `18`
2818-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2818+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
28192819
- **Stable**: Yes
28202820

28212821
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `struct_lit_width` will take precedence.
@@ -2827,7 +2827,7 @@ See also [`max_width`](#max_width), [`use_small_heuristics`](#use_small_heuristi
28272827
Maximum width in the body of a struct variant before falling back to vertical formatting. A value of `0` (zero) results in struct literals always being broken into multiple lines. Note this occurs when `use_small_heuristics` is set to `Off`.
28282828

28292829
- **Default value**: `35`
2830-
- **Possible values**: any positive integer that is less than or equal to the value specified for [`max_width`](#max_width)
2830+
- **Possible values**: any nonnegative integer that is less than or equal to the value specified for [`max_width`](#max_width)
28312831
- **Stable**: Yes
28322832

28332833
By default this option is set as a percentage of [`max_width`](#max_width) provided by [`use_small_heuristics`](#use_small_heuristics), but a value set directly for `struct_variant_width` will take precedence.
@@ -2864,7 +2864,7 @@ Alternatively, you can use the `--style-edition` flag when running `rustfmt` dir
28642864
Number of spaces per tab
28652865

28662866
- **Default value**: `4`
2867-
- **Possible values**: any positive integer
2867+
- **Possible values**: any nonnegative integer
28682868
- **Stable**: Yes
28692869

28702870
#### `4` (default):

0 commit comments

Comments
 (0)